From 9b9e995819fe0e066f9f13cc009a99a210afde4e Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 5 Dec 2019 14:28:55 +0100 Subject: [DebugInfo][EarlyCSE] Use the salvageDebugInfoOrMarkUndef(); NFC Use the newest API. Differential Revision: https://reviews.llvm.org/D71061 --- llvm/lib/Transforms/Scalar/EarlyCSE.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/EarlyCSE.cpp') diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp index 813b1c96b1c..40c1ba88354 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; -- cgit v1.2.3