[llvm] [VectorCombine] Combine BinOp with extract/insert to vector BinOp (PR #115213)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 02:59:04 PST 2024


================
@@ -2678,6 +2679,52 @@ bool VectorCombine::shrinkType(llvm::Instruction &I) {
   return true;
 }
 
+/// insert (DstVec, (extract (binop), ExtIdx), InsIdx) -->
+/// shuffl (DstVec, (binop), Mask)
----------------
RKSimon wrote:

shuffle

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


More information about the llvm-commits mailing list