llvm-project
9b8a0c3e - [InstSimplify] Fold splice.right(splice.left(poison, x, offset), poison, offset) -> x (#204256)

Commit
18 days ago
[InstSimplify] Fold splice.right(splice.left(poison, x, offset), poison, offset) -> x (#204256) Fixes #203027 Adds an InstSimplify fold for llvm.vector.splice.left/m.vector.splice.right roundtrip. The values in a vector are first shifted to the right and then to the left, filling the clipped off values with poison. In this scenario, the shift operations get simplified to just x.
Author
Parents
Loading