HomePhabricator

[InstSimplify] Return poison for out of bounds extractelement

Authored by nikic on Sun, Jan 3, 9:05 AM.

Description

[InstSimplify] Return poison for out of bounds extractelement

This is the same change as D93990, but for extractelement rather
than insertelement.

If idx exceeds the length of val for a fixed-length vector, the
result is a poison value. For a scalable vector, if the value of
idx exceeds the runtime length of the vector, the result is a
poison value.

Details

Committed
nikicSun, Jan 3, 9:15 AM
Parents
rG49c2d703d344: [X86] Make deinterleave8bitStride3 use unary CreateShuffleVector
Branches
Unknown
Tags
Unknown