aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorOCHyams <orlando.hyams@sony.com>2023-01-06 08:42:18 +0000
committerOCHyams <orlando.hyams@sony.com>2023-01-06 09:15:02 +0000
commit042107494d341f0e6eb38b474ec8bed13b6fd978 (patch)
tree614dc66ad0580bca958880201ebd64ca42eadf76 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent9e84e038447e283d020ae01aebb15e0e66ef3642 (diff)
downloadllvm-042107494d341f0e6eb38b474ec8bed13b6fd978.zip
llvm-042107494d341f0e6eb38b474ec8bed13b6fd978.tar.gz
llvm-042107494d341f0e6eb38b474ec8bed13b6fd978.tar.bz2
[DebugInfo][NFC] Rename is/setUndef to is/setKilllocation
These names better reflect the semantics and also the implementation, since it's not just "undef" operands that are sentinels used to signal that the debug intrinsic terminates dominating locations definitions. Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D140903
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
index 1561fb4..294f5f6 100644
--- a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
+++ b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
@@ -2111,7 +2111,8 @@ bool AssignmentTrackingLowering::emitPromotedVarLocs(
// operand is nullptr. We also can't handle variadic DIExpressions yet.
// Some of those conditions don't have a type we can pick for
// undef. Use i32.
- if (DVI->isUndef() || DVI->getValue() == nullptr || DVI->hasArgList())
+ if (DVI->isKillLocation() || DVI->getValue() == nullptr ||
+ DVI->hasArgList())
return UndefValue::get(Type::getInt32Ty(DVI->getContext()));
return DVI->getValue();
};