[PATCH] D98401: [CodeGen] Fix backward copy propagation with -g
Zhiwei Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 11 02:04:25 PST 2021
condy created this revision.
Herald added a subscriber: hiraditya.
condy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98401
Files:
llvm/lib/CodeGen/MachineCopyPropagation.cpp
Index: llvm/lib/CodeGen/MachineCopyPropagation.cpp
===================================================================
--- llvm/lib/CodeGen/MachineCopyPropagation.cpp
+++ llvm/lib/CodeGen/MachineCopyPropagation.cpp
@@ -648,6 +648,10 @@
continue;
}
+ // Ignore DBG_VALUEs
+ if (MI->isDebugValue())
+ continue;
+
// Clobber any earlyclobber regs first.
for (const MachineOperand &MO : MI->operands())
if (MO.isReg() && MO.isEarlyClobber()) {
@@ -846,6 +850,10 @@
}
}
+ // Ignore DBG_VALUEs
+ if (MI->isDebugValue())
+ continue;
+
// Invalidate any earlyclobber regs first.
for (const MachineOperand &MO : MI->operands())
if (MO.isReg() && MO.isEarlyClobber()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98401.329886.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210311/1991306c/attachment.bin>
More information about the llvm-commits
mailing list