This is an archive of the discontinued LLVM Phabricator instance.

[LoopIdiomRecognize] Remove NUW flag from SCEV in getTripCount.
ClosedPublic

Authored by craig.topper on Apr 12 2023, 1:55 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 12 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 1:55 PM
craig.topper requested review of this revision.Apr 12 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 1:55 PM
craig.topper added inline comments.Apr 12 2023, 1:55 PM
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
1010

This one also looks suspect if we aren't zero extending?

nikic added inline comments.Apr 13 2023, 1:27 AM
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
1010

Yes, this one should be dropped as well.

Remove other NUW.

nikic accepted this revision.Apr 13 2023, 11:49 AM

LGTM

This revision is now accepted and ready to land.Apr 13 2023, 11:49 AM
This revision was landed with ongoing or failed builds.Apr 13 2023, 11:58 AM
This revision was automatically updated to reflect the committed changes.