[llvm] [VectorCombine] Fold insert(binop(x,y),binop(a,b),idx) --> binop(insert(x,a,idx),insert(x,a,idx)) (PR #124909)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 00:47:20 PST 2025


================
@@ -738,6 +739,64 @@ bool VectorCombine::foldInsExtFNeg(Instruction &I) {
   return true;
 }
 
+/// Try to fold insert(binop(x,y),binop(a,b),idx)
+///         --> binop(insert(x,a,idx),insert(x,a,idx))
----------------
RKSimon wrote:

Thanks cut+pasta typo :) 

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


More information about the llvm-commits mailing list