[PATCH] D71061: [DebugInfo][EarlyCSE] Use the salvageDebugInfoOrMarkUndef(); NFC
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 04:59:14 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9b9e995819fe: [DebugInfo][EarlyCSE] Use the salvageDebugInfoOrMarkUndef(); NFC (authored by djtodoro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71061/new/
https://reviews.llvm.org/D71061
Files:
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
Index: llvm/lib/Transforms/Scalar/EarlyCSE.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/EarlyCSE.cpp
+++ llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@@ -907,8 +907,8 @@
LLVM_DEBUG(dbgs() << "Skipping due to debug counter\n");
continue;
}
- if (!salvageDebugInfo(*Inst))
- replaceDbgUsesWithUndef(Inst);
+
+ salvageDebugInfoOrMarkUndef(*Inst);
removeMSSA(Inst);
Inst->eraseFromParent();
Changed = true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71061.232815.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191209/ca3217dc/attachment.bin>
More information about the llvm-commits
mailing list