This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Handle nsw shl -> poison patterns
ClosedPublic

Authored by RKSimon on Feb 23 2021, 9:34 AM.

Details

Summary

Pulled out from D90479 - this recognises invalid nsw shl patterns with signbit changes that result in poison.

Diff Detail

Event Timeline

RKSimon created this revision.Feb 23 2021, 9:34 AM
RKSimon requested review of this revision.Feb 23 2021, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2021, 9:34 AM
lebedev.ri accepted this revision.Feb 23 2021, 9:56 AM

Looks good to me.

llvm/lib/Analysis/InstructionSimplify.cpp
1266–1274

NFC, please precommit

1299
This revision is now accepted and ready to land.Feb 23 2021, 9:56 AM
This revision was landed with ongoing or failed builds.Feb 23 2021, 10:27 AM
This revision was automatically updated to reflect the committed changes.