This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Use full logic when infering flags on add and gep
ClosedPublic

Authored by reames on Oct 2 2021, 2:41 PM.

Details

Summary

This is a followon to D109845. Once that lands, we will have fixed all known instances of pr51817, and can thus start inferring flags more aggressively with greatly reduced risk of miscompiles. This patch simply applies the same inference logic used in that patch to our other major flag inference path.

We can still do much better here (on both paths), but this is our first step.

Diff Detail

Event Timeline

reames created this revision.Oct 2 2021, 2:41 PM
reames requested review of this revision.Oct 2 2021, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 2 2021, 2:41 PM
nikic accepted this revision.Oct 3 2021, 11:52 AM

LGTM

This revision is now accepted and ready to land.Oct 3 2021, 11:52 AM
This revision was automatically updated to reflect the committed changes.