summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveRangeEdit.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-02-28 22:07:24 +0000
committerLang Hames <lhames@gmail.com>2012-02-28 22:07:24 +0000
commit2fbad222e1a89a28d5bb7a034218b0bed86a070f (patch)
tree4e74951c17aa40c2a38f34d1713e147d01a615f0 /llvm/lib/CodeGen/LiveRangeEdit.cpp
parent16f383106445a7b7b92ee6871b16d3b2a26264b6 (diff)
downloadbcm5719-llvm-2fbad222e1a89a28d5bb7a034218b0bed86a070f.tar.gz
bcm5719-llvm-2fbad222e1a89a28d5bb7a034218b0bed86a070f.zip
Kill off LiveRangeEdit::getNewVRegs and LiveRangeEdit::getUselessVRegs. These
methods are no longer needed now that LinearScan has gone away. (Contains tweaks trivialSpillEverywhere to enable the removal of getNewVRegs). llvm-svn: 151658
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp
index 952a1e1b909..f9b93d54f6e 100644
--- a/llvm/lib/CodeGen/LiveRangeEdit.cpp
+++ b/llvm/lib/CodeGen/LiveRangeEdit.cpp
@@ -94,11 +94,6 @@ bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI,
// Reserved registers are OK.
if (MO.isUndef() || !lis.hasInterval(MO.getReg()))
continue;
- // We cannot depend on virtual registers in uselessRegs_.
- if (uselessRegs_)
- for (unsigned ui = 0, ue = uselessRegs_->size(); ui != ue; ++ui)
- if ((*uselessRegs_)[ui]->reg == MO.getReg())
- return false;
LiveInterval &li = lis.getInterval(MO.getReg());
const VNInfo *OVNI = li.getVNInfoAt(OrigIdx);
OpenPOWER on IntegriCloud