[llvm] [VectorCombine] Fold binop(shuffle(V1, Mask), shuffle(V2, Mask)) -> shuffle(binop(V1, V2), Mask) (PR #211530)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 07:32:29 PDT 2026


================
@@ -2443,6 +2444,70 @@ bool VectorCombine::foldConcatOfBoolMasks(Instruction &I) {
   return true;
 }
 
+// Fold binop(shuffle(V0, Mask), shuffle(V1, Mask))
+// --> shuffle(binop(V0, V1), Mask)
----------------
dtcxzyw wrote:

Use `///` for function header comments.

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


More information about the llvm-commits mailing list