[llvm] [SandboxVec] Add BottomUpVec test flag to build regions from metadata. (PR #111904)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 15:25:19 PDT 2024


================
@@ -0,0 +1,16 @@
+; RUN: opt -disable-output --passes=sandbox-vectorizer \
+; RUN:    -sbvec-passes=print-instruction-count \
+; RUN:    -sbvec-use-regions-from-metadata %s | FileCheck %s
+
+define i8 @foo(i8 %v0, i8 %v1) {
+  %t0 = add i8 %v0, 1, !sandboxvec !0
----------------
aeubanks wrote:

having a small test to ensure it's iterating over the `SetVector` rather than somehow iterating over instructions would be good

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


More information about the llvm-commits mailing list