This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Add with.overflow intrinsics to poison analysis functions
ClosedPublic

Authored by aqjune on Mar 31 2021, 10:03 AM.

Details

Summary

This is a patch teaching ValueTracking that s/u*.with.overflow intrinsics do not
create undef/poison and they propagate poison.
I couldn't write a nice example like the one with ctpop; ValueTrackingTest.cpp were simply updated
to check these instead.
This patch helps reducing regression while fixing https://llvm.org/pr49688 .

Diff Detail

Event Timeline

aqjune created this revision.Mar 31 2021, 10:03 AM
aqjune requested review of this revision.Mar 31 2021, 10:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2021, 10:03 AM
aqjune edited the summary of this revision. (Show Details)Mar 31 2021, 10:08 AM
nikic accepted this revision.Mar 31 2021, 10:08 AM
nikic added a subscriber: nikic.

LGTM

This revision is now accepted and ready to land.Mar 31 2021, 10:08 AM
This revision was landed with ongoing or failed builds.Mar 31 2021, 10:42 AM
This revision was automatically updated to reflect the committed changes.