HomePhabricator

[InstSimplify] Fold out-of-bounds shift to poison

Authored by nikic on Sun, Jan 3, 12:10 PM.

Description

[InstSimplify] Fold out-of-bounds shift to poison

Make InstSimplify return poison rather than undef for out-of-bounds
shifts, as specified by LandRef:

If op2 is (statically or dynamically) equal to or larger than the
number of bits in op1, this instruction returns a poison value.

Differential Revision: https://reviews.llvm.org/D93998

Details

Committed
nikicWed, Jan 6, 11:41 AM
Differential Revision
D93998: [InstSimplify] Fold out-of-bounds shift to poison
Parents
rG8f9da24fa7ff: [GVN] Regenerate test checks (NFC)
Branches
Unknown
Tags
Unknown