[llvm] [InstCombine] Retain debug information on store to null instruction (PR #86105)
Abinaya Saravanan via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 07:11:46 PDT 2024
================
@@ -0,0 +1,30 @@
+; 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
+
+source_filename = "test.ll"
+target triple = "hexagon"
+
+define void @_Z3foov() {
+; CHECK-LABEL: define void @_Z3foov() {
+; CHECK-NEXT: entry:
+; CHECK-NEXT: store i1 true, ptr poison, align 1, !dbg
----------------
quic-asaravan wrote:
@nikic I have updated the lit test. Can you please review it?
https://github.com/llvm/llvm-project/pull/86105
More information about the llvm-commits
mailing list