[llvm] [LV] Teach LoopVectorizationLegality about struct vector calls (PR #119221)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 09:50:43 PST 2025


================
@@ -0,0 +1,97 @@
+; RUN: opt < %s -mattr=+sve -passes=loop-vectorize,dce,instcombine -force-vector-interleave=1 -prefer-predicate-over-epilogue=predicate-dont-vectorize -S | FileCheck %s
+; RUN: opt < %s -mattr=+sve -passes=loop-vectorize,dce,instcombine -force-vector-interleave=1 -prefer-predicate-over-epilogue=predicate-dont-vectorize -pass-remarks-analysis=loop-vectorize -disable-output -S 2>&1 | FileCheck %s --check-prefix=CHECK-REMARKS
----------------
david-arm wrote:

If the remarks go to stderr then you only need to run `opt` once, i.e

```
; RUN: opt < %s -mattr=+sve -passes=loop-vectorize,dce,instcombine -force-vector-interleave=1 -prefer-predicate-over-epilogue=predicate-dont-vectorize -pass-remarks-analysis=loop-vectorize -S 2>%t | FileCheck %s
; RUN: cat %t | FileCheck --check-prefix=CHECK-REMARKS
```

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


More information about the llvm-commits mailing list