summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-22 18:38:57 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-22 18:38:57 +0000
commit8a833649e5b409344b8dc74da1f506ed7ee35f02 (patch)
treeb407e58e0fa84e978b3263a67eeab2a45648eeee /llvm/lib
parent37e797fedc19f85bccd0773efe6ccaf33f748993 (diff)
downloadbcm5719-llvm-8a833649e5b409344b8dc74da1f506ed7ee35f02.tar.gz
bcm5719-llvm-8a833649e5b409344b8dc74da1f506ed7ee35f02.zip
Simplify handleMove() a bit.
There is no need to check for physreg live ranges. They don't exist any more. llvm-svn: 159019
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index e7792a4dcb3..92037aa61e1 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1000,15 +1000,15 @@ private:
// Collect ranges for register units. These live ranges are computed on
// demand, so just skip any that haven't been computed yet.
- if (TargetRegisterInfo::isPhysicalRegister(Reg))
+ if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
for (MCRegUnitIterator Units(Reg, &TRI); Units.isValid(); ++Units)
if (LiveInterval *LI = LIS.getCachedRegUnit(*Units))
collectRanges(MO, LI, Entering, Internal, Exiting, OldIdx);
-
- // Collect ranges for individual registers.
- if (LIS.hasInterval(Reg))
+ } else {
+ // Collect ranges for individual virtual registers.
collectRanges(MO, &LIS.getInterval(Reg),
Entering, Internal, Exiting, OldIdx);
+ }
}
}
OpenPOWER on IntegriCloud