[llvm] [VectorCombine] Fold concat(binop(a,c), binop(b,d)) -> binop(concat(a,b), concat(c,d)) for i1 vectors (PR #206087)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 04:50:54 PDT 2026


================
@@ -0,0 +1,57 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- -mcpu=x86-64-v4 | FileCheck %s
----------------
RKSimon wrote:

Probably a good idea to RUN these tests for all 4 x86-64-v* levels to see what happens:
```
; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- -mcpu=x86-64    | FileCheck %s
; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- -mcpu=x86-64-v2 | FileCheck %s
; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- -mcpu=x86-64-v3 | FileCheck %s
; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- -mcpu=x86-64-v4 | FileCheck %s
```
you might need to add a --check-prefixes list

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


More information about the llvm-commits mailing list