[llvm] Handle #dbg_values in SROA. (PR #94070)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 05:28:11 PDT 2024


================
@@ -21,7 +21,7 @@
 ; CHECK: define dso_local void @fun(i32 %param)
 ; CHECK-NEXT: entry:
 ; CHECK-NEXT: #dbg_value(i32 %param, ![[PARAM:[0-9]+]], !DIExpression(),
-; CHECK-NOT: #dbg_value({{.*}}, ![[PARAM]]
+; CHECK-NEXT: #dbg_value({{.*}}, ![[PARAM]]
----------------
SLTozer wrote:

This should test for the contents of the `#dbg_value` as well (i.e. the value and DIExpression), to ensure that it's producing the right operands.

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


More information about the llvm-commits mailing list