This is an archive of the discontinued LLVM Phabricator instance.

[LoopBoundSplit] Update phi node in exit block
ClosedPublic

Authored by jaykang10 on Sep 2 2021, 8:06 AM.

Details

Summary

This patch updates phi node in exit block properly.

It fixes https://bugs.llvm.org/show_bug.cgi?id=51700

Diff Detail

Event Timeline

jaykang10 created this revision.Sep 2 2021, 8:06 AM
jaykang10 requested review of this revision.Sep 2 2021, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2021, 8:06 AM
jaykang10 edited reviewers, added: uabelho; removed: Holman.Sep 2 2021, 8:56 AM
reames accepted this revision.Sep 2 2021, 9:29 AM

LGTM

This revision is now accepted and ready to land.Sep 2 2021, 9:29 AM

LGTM

Thanks for review @reames! Let me push this change.

bjope added a comment.Sep 3 2021, 1:34 AM

LGTM

Thanks for review @reames! Let me push this change.

Thanks for looking into the PR @jaykang10 . I'll rerun my test cases when this has landed!

LGTM

Thanks for review @reames! Let me push this change.

Thanks for looking into the PR @jaykang10 . I'll rerun my test cases when this has landed!

Thanks for checking this pass. @bjope

I have pushed this change. If there is still something wrong with the pass, please let me know.

LGTM

Thanks for review @reames! Let me push this change.

Thanks for looking into the PR @jaykang10 . I'll rerun my test cases when this has landed!

Thanks for checking this pass. @bjope

I have pushed this change. If there is still something wrong with the pass, please let me know.

@bjope From your email on llvm-dev, I can see you try to use loop-distribute pass. If possible, can I ask you have plan to enable the pass as default in upstream please?