[llvm] [SROA] Prevent load atomic vector from being generated (PR #112432)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 13:57:36 PDT 2024
================
@@ -0,0 +1,19 @@
+; RUN: opt < %s -passes='sroa' -S 2>&1 | FileCheck %s --check-prefix=ERR
+; RUN: opt < %s -passes='sroa' -S | FileCheck %s
+
+define float @atomic_vector() {
+; ERR-NOT: atomic load operand must have integer, pointer, or floating point type!
+; ERR-NOT: <1 x float> {{%.*}} = load atomic volatile <1 x float>, ptr {{%.*}} acquire, align 4
----------------
shiltian wrote:
but that could prevent you from auto generating check lines. I'm currently modifying 50+ test cases manually and it is really annoying.
https://github.com/llvm/llvm-project/pull/112432
More information about the llvm-commits
mailing list