This is an archive of the discontinued LLVM Phabricator instance.

[IndVars] Add check of loop invariant for indirect use
ClosedPublic

Authored by Allen on Jun 1 2023, 4:13 AM.

Details

Summary

We usually only check direct use instruction of IV, while the
bitcast of 'ptrtoint ptr to i64' doesn't affect the result, so go
a step further.
Fix https://github.com/llvm/llvm-project/issues/59633.

Diff Detail

Event Timeline

Allen created this revision.Jun 1 2023, 4:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 4:13 AM
Allen requested review of this revision.Jun 1 2023, 4:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 4:13 AM
Allen updated this revision to Diff 527366.Jun 1 2023, 4:50 AM
markoshorro accepted this revision.Jun 1 2023, 5:56 AM

LGTM

Thanks for taking the time to look at this.

This revision is now accepted and ready to land.Jun 1 2023, 5:56 AM
This revision was automatically updated to reflect the committed changes.