This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Add logic for `isKnownNonZero(sshl.sat/ushl.sat X, Y)`
ClosedPublic

Authored by goldstein.w.n on Apr 27 2023, 11:19 PM.

Details

Summary

(sshl/ushl X, Y) != 0 -> X != 0

Alive2 Links

https://alive2.llvm.org/ce/z/4WLM2p
https://alive2.llvm.org/ce/z/BHFng4

Diff Detail

Event Timeline

goldstein.w.n created this revision.Apr 27 2023, 11:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 11:19 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
goldstein.w.n requested review of this revision.Apr 27 2023, 11:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 11:19 PM
nikic accepted this revision.Apr 28 2023, 1:34 AM

LGTM

This revision is now accepted and ready to land.Apr 28 2023, 1:34 AM