[PATCH] D80691: Proposed fix for PR46114
Qirun Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 11:34:26 PDT 2020
helloqirun updated this revision to Diff 266967.
helloqirun added a comment.
Re-formatted the comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80691/new/
https://reviews.llvm.org/D80691
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
@@ -1136,6 +1136,9 @@
LLVM_DEBUG(dbgs() << "Skipping due to debug counter\n");
continue;
}
+ // Salvage debug info early to be compatible with
+ // removeRedundantDbgInstrsUsingBackwardScan() used in SimplfyCFG.
+ salvageDebugInfoOrMarkUndef(Inst);
if (!Inst.use_empty())
Inst.replaceAllUsesWith(Op);
salvageKnowledge(&Inst, &AC);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80691.266967.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/684eafd5/attachment.bin>
More information about the llvm-commits
mailing list