llvm-project
8ebec3d5 - [InstCombine] Constant fold binops through `vector.insert` (#164624)

Commit
13 days ago
[InstCombine] Constant fold binops through `vector.insert` (#164624) This patch improves constant folding through `llvm.vector.insert`. It does not change anything for fixed-length vectors (which can already be folded to ConstantVectors for these cases), but folds scalable vectors that otherwise would not be folded. These folds preserve the destination vector (which could be undef or poison), giving targets more freedom in lowering the operations.
Author
Parents
Loading