This is an archive of the discontinued LLVM Phabricator instance.

Move TailRecursionElimination to new OptimizationRemarkEmitter API
AbandonedPublic

Authored by lenary on Jul 18 2017, 8:52 PM.

Details

Reviewers
anemet
Summary

This changes the TailRecursionElimination pass to use
the new OptimizationRemarkEmitter API available during
function passes.

Event Timeline

lenary created this revision.Jul 18 2017, 8:52 PM

This closes https://bugs.llvm.org/show_bug.cgi?id=33788

This commit almost certainly needs work, I'm new to the llvm codebase. I also don't fully understand arc, I think I have the right lists subscribed and have asked for reviews from the right people, but I'm not sure.

anemet edited edge metadata.Jul 18 2017, 9:14 PM
anemet added a subscriber: davide.

Bummer, looks like you and @davide both worked on the same pass: D35570 and came up with very similar patches. @davide did you make progress since the last rev?

This closes https://bugs.llvm.org/show_bug.cgi?id=33788

This commit almost certainly needs work, I'm new to the llvm codebase. I also don't fully understand arc, I think I have the right lists subscribed and have asked for reviews from the right people, but I'm not sure.

This seems to be a duplicate of https://reviews.llvm.org/D35570

Bummer, looks like you and @davide both worked on the same pass: D35570 and came up with very similar patches. @davide did you make progress since the last rev?

I have a new version of the patch with tests on my work machine. @lenary, if you want to work on this, I'm fine with it.

lenary abandoned this revision.Jul 18 2017, 9:25 PM

I have just discovered that I have a failing test, in test/Other/new-pm-thinlto-defaults.ll Yours will probably fail there too.

@davide I'll defer to you and your patch on this, given you have comments etc. No worries from me about my duplicated effort.

I have just discovered that I have a failing test, in test/Other/new-pm-thinlto-defaults.ll Yours will probably fail there too.

@davide I'll defer to you and your patch on this, given you have comments etc. No worries from me about my duplicated effort.

OK. FWIW, if you want to work on any other pass conversion you may want to assign the PR to you to avoid duplication (I was sloppy in this regard, but hey, I didn't think somebody else was interested otherwise I wouldn't have started :)
Also, you may want to subscribe to the llvm-commits mailing list because phabricator reviews mail are sent there.