[clang] [llvm] [LV] Support generating masks for switch terminators. (PR #99808)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 12:12:31 PDT 2024


================
@@ -1,7 +1,7 @@
 // RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -emit-llvm -Rpass-analysis -S %s -o - 2>&1 | FileCheck %s --check-prefix=RPASS
 // RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -emit-llvm -S %s -o - 2>&1 | FileCheck %s
 
-// RPASS: {{.*}}:12:5: remark: loop not vectorized: loop contains a switch statement
+// RPASS-NOT: {{.*}}:12:5: remark: loop not vectorized
 // CHECK-NOT: remark: loop not vectorized: loop contains a switch statement
----------------
fhahn wrote:

I think that's to check that the message doesn't get emitted when `-Rpass-analysis` isn't passed. The function in the test likely needs to be replaced to preserve checking the plumbing for Rpass-analysis.

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


More information about the llvm-commits mailing list