diff options
author | OCHyams <orlando.hyams@sony.com> | 2023-01-06 08:42:18 +0000 |
---|---|---|
committer | OCHyams <orlando.hyams@sony.com> | 2023-01-06 09:15:02 +0000 |
commit | 042107494d341f0e6eb38b474ec8bed13b6fd978 (patch) | |
tree | 614dc66ad0580bca958880201ebd64ca42eadf76 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 9e84e038447e283d020ae01aebb15e0e66ef3642 (diff) | |
download | llvm-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/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index acde526..d14e5b8 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -502,8 +502,8 @@ static bool remomveUndefDbgAssignsFromEntryBlock(BasicBlock *BB) { bool IsDbgValueKind = (!DAI || at::getAssignmentInsts(DAI).empty()); DebugVariable Aggregate = GetAggregateVariable(DVI); if (!SeenDefForAggregate.contains(Aggregate)) { - bool IsUndef = DVI->isUndef() && IsDbgValueKind; - if (!IsUndef) { + bool IsKill = DVI->isKillLocation() && IsDbgValueKind; + if (!IsKill) { SeenDefForAggregate.insert(Aggregate); } else if (DAI) { ToBeRemoved.push_back(DAI); |