[llvm] [VectorCombine] Use InstSimplifyFolder to simplify instrs on creation. (PR #146350)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 07:43:08 PDT 2025


================
@@ -529,7 +531,8 @@ bool VectorCombine::isExtractExtractCheap(ExtractElementInst *Ext0,
 /// Create a shuffle that translates (shifts) 1 element from the input vector
 /// to a new element location.
 static Value *createShiftShuffle(Value *Vec, unsigned OldIndex,
-                                 unsigned NewIndex, IRBuilder<> &Builder) {
+                                 unsigned NewIndex,
+                                 IRBuilder<InstSimplifyFolder> &Builder) {
----------------
fhahn wrote:

Done thanks.

https://github.com/llvm/llvm-project/pull/146350


More information about the llvm-commits mailing list