This is an archive of the discontinued LLVM Phabricator instance.

[NPM] Port -mergereturn to NPM
ClosedPublic

Authored by TaWeiTu on Oct 20 2020, 2:32 AM.

Diff Detail

Event Timeline

TaWeiTu created this revision.Oct 20 2020, 2:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2020, 2:32 AM
TaWeiTu requested review of this revision.Oct 20 2020, 2:32 AM
aeubanks added inline comments.Oct 20 2020, 9:36 AM
llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
125

this won't run unifyReturnBlocks() if unifyUnreachableBlocks() returns true, is that expected?

TaWeiTu updated this revision to Diff 299396.Oct 20 2020, 9:56 AM
TaWeiTu marked an inline comment as done.
TaWeiTu added inline comments.
llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
125

Oh, that was stupid. Thanks for pointing it out!

aeubanks accepted this revision.Oct 20 2020, 9:59 AM
aeubanks added inline comments.
llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
128

I like using PreservedAnalyses::none() better, it's more explicit.

This revision is now accepted and ready to land.Oct 20 2020, 9:59 AM
TaWeiTu marked an inline comment as done.Oct 20 2020, 10:02 AM

Thanks for reviewing! Could you do me a favor of committing this and D89774 for me? (with --author="Ta-Wei Tu <tu.da.wei@gmail.com>)

This revision was landed with ongoing or failed builds.Oct 20 2020, 10:34 AM
Closed by commit rG59286b36dfb5: [NPM] Port -mergereturn to NPM (authored by TaWeiTu, committed by aeubanks). · Explain Why
This revision was automatically updated to reflect the committed changes.

Done for this one, could you rebase the other one?