This is an archive of the discontinued LLVM Phabricator instance.

[SimpleLoopUnswitch] Forget loop if its one of user was replaced
AbandonedPublic

Authored by StephenFan on Nov 13 2022, 8:59 AM.

Details

Reviewers
nikic
fhahn
Summary

Replacing user in loop may change the scalar evolution in this loop. So
we need to forget this loop.

Fixes: https://github.com/llvm/llvm-project/issues/58868

Diff Detail

Event Timeline

StephenFan created this revision.Nov 13 2022, 8:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 13 2022, 9:00 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.Nov 13 2022, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 13 2022, 9:00 AM
fhahn added a comment.Nov 13 2022, 9:39 AM

I think this should already be fixed slightly differently with 7854a1abfd9a

I think this should already be fixed slightly differently with 7854a1abfd9a

Thanks!

StephenFan abandoned this revision.Nov 13 2022, 6:21 PM