[llvm] 9b9e995 - [DebugInfo][EarlyCSE] Use the salvageDebugInfoOrMarkUndef(); NFC
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 04:58:48 PST 2019
Author: Djordje Todorovic
Date: 2019-12-09T13:57:35+01:00
New Revision: 9b9e995819fe0e066f9f13cc009a99a210afde4e
URL: https://github.com/llvm/llvm-project/commit/9b9e995819fe0e066f9f13cc009a99a210afde4e
DIFF: https://github.com/llvm/llvm-project/commit/9b9e995819fe0e066f9f13cc009a99a210afde4e.diff
LOG: [DebugInfo][EarlyCSE] Use the salvageDebugInfoOrMarkUndef(); NFC
Use the newest API.
Differential Revision: https://reviews.llvm.org/D71061
Added:
Modified:
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
index 813b1c96b1cd..40c1ba88354f 100644
--- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
+++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@@ -907,8 +907,8 @@ bool EarlyCSE::processNode(DomTreeNode *Node) {
LLVM_DEBUG(dbgs() << "Skipping due to debug counter\n");
continue;
}
- if (!salvageDebugInfo(*Inst))
- replaceDbgUsesWithUndef(Inst);
+
+ salvageDebugInfoOrMarkUndef(*Inst);
removeMSSA(Inst);
Inst->eraseFromParent();
Changed = true;
More information about the llvm-commits
mailing list