[PATCH] D140991: [DebugInfo] Replace UndefValue with PoisonValue in DIArgList::handleChangedOperand
Orlando Cazalet-Hyams via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 08:20:35 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG65d71ee3cfa7: [DebugInfo] Replace UndefValue with PoisonValue in DIArgList… (authored by Orlando).
Changed prior to commit:
https://reviews.llvm.org/D140991?vs=486283&id=516816#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140991/new/
https://reviews.llvm.org/D140991
Files:
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll
Index: llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll
===================================================================
--- llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll
+++ llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll
@@ -6,7 +6,7 @@
; CHECK-NOT: @s
-; CHECK: call void @llvm.dbg.value(metadata !DIArgList(ptr undef
+; CHECK: call void @llvm.dbg.value(metadata !DIArgList(ptr poison
%struct.S = type { i32 }
Index: llvm/lib/IR/DebugInfoMetadata.cpp
===================================================================
--- llvm/lib/IR/DebugInfoMetadata.cpp
+++ llvm/lib/IR/DebugInfoMetadata.cpp
@@ -2093,7 +2093,7 @@
if (NewVM)
VM = NewVM;
else
- VM = ValueAsMetadata::get(UndefValue::get(VM->getValue()->getType()));
+ VM = ValueAsMetadata::get(PoisonValue::get(VM->getValue()->getType()));
}
}
if (Uniq) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140991.516816.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230425/7593c655/attachment.bin>
More information about the llvm-commits
mailing list