[llvm] [InstCombine] Retain debug information on store to null instruction (PR #86105)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 02:40:38 PDT 2024


================
@@ -0,0 +1,27 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
+; Verify whether debug information is attached to the store to null/undef instruction
+; !dbg should be present at the end of "store to null" instruction
+; RUN: opt -S -passes='instcombine' < %s | FileCheck %s > /dev/null
+
+define void @_Z3foov() {
+; CHECK-LABEL: define void @_Z3foov() {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    store i1 true, ptr poison, align 1
----------------
nikic wrote:

This is now lacking the `, !dbg` attachment entirely -- did you use the correct build?

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


More information about the llvm-commits mailing list