This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Stop applying contextual flags in applyLoopGuards
ClosedPublic

Authored by reames on Sep 14 2021, 1:33 PM.

Details

Summary

This fixes a violation of the wrap flag rules introduced in c4048d8f. As noted in the original review, the NUW is legal to infer from the structure of the replacee, but a) there's no test coverage, and b) this should be done generically for all multiplies.

Diff Detail

Event Timeline

reames created this revision.Sep 14 2021, 1:33 PM
reames requested review of this revision.Sep 14 2021, 1:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2021, 1:33 PM
This revision is now accepted and ready to land.Sep 14 2021, 1:48 PM
fhahn accepted this revision.Sep 14 2021, 1:54 PM

Thanks for fixing this! LGTM

llvm/lib/Analysis/ScalarEvolution.cpp
13499

nit: replacee -> replaced?

This revision was landed with ongoing or failed builds.Sep 14 2021, 2:15 PM
This revision was automatically updated to reflect the committed changes.