[PATCH] D48420: [CodeGen} Avoid handling DBG_VALUE in LiveRegUnits::stepBackward
Krzysztof Parzyszek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 21 06:43:30 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL335233: [CodeGen] Avoid handling DBG_VALUE in LiveRegUnits::stepBackward (authored by kparzysz, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48420?vs=152248&id=152283#toc
Repository:
rL LLVM
https://reviews.llvm.org/D48420
Files:
llvm/trunk/lib/CodeGen/LiveRegUnits.cpp
Index: llvm/trunk/lib/CodeGen/LiveRegUnits.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/LiveRegUnits.cpp
+++ llvm/trunk/lib/CodeGen/LiveRegUnits.cpp
@@ -46,7 +46,7 @@
// Remove defined registers and regmask kills from the set.
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
if (O->isReg()) {
- if (!O->isDef())
+ if (!O->isDef() || O->isDebug())
continue;
unsigned Reg = O->getReg();
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
@@ -58,7 +58,7 @@
// Add uses to the set.
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
- if (!O->isReg() || !O->readsReg())
+ if (!O->isReg() || !O->readsReg() || O->isDebug())
continue;
unsigned Reg = O->getReg();
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48420.152283.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180621/0b16886d/attachment.bin>
More information about the llvm-commits
mailing list