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/LoopUtils.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/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index bc81e0f..7df8651 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -637,7 +637,7 @@ void llvm::deleteDeadLoop(Loop *L, DominatorTree *DT, ScalarEvolution *SE, "There should be a non-PHI instruction in exit block, else these " "instructions will have no parent."); for (auto *DVI : DeadDebugInst) { - DVI->setUndef(); + DVI->setKillLocation(); DVI->moveBefore(InsertDbgValueBefore); } } |