summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-02-14 03:04:29 +0000
committerLang Hames <lhames@gmail.com>2012-02-14 03:04:29 +0000
commit3365179018f405f936e141f9f286a60041f4d85f (patch)
tree3cb8728b62a5adb3d36cc84b1d2d400e9ec8489d /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent914c7e62e844e4bb3de62087077ca9802fc235d6 (diff)
downloadbcm5719-llvm-3365179018f405f936e141f9f286a60041f4d85f.tar.gz
bcm5719-llvm-3365179018f405f936e141f9f286a60041f4d85f.zip
Use convenience function for consistency.
llvm-svn: 150457
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 64bbf1e7816..72f4eb7d646 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -994,8 +994,7 @@ unsigned LiveIntervals::getReMatImplicitUse(const LiveInterval &li,
if (Reg == 0 || Reg == li.reg)
continue;
- if (TargetRegisterInfo::isPhysicalRegister(Reg) &&
- !allocatableRegs_[Reg])
+ if (TargetRegisterInfo::isPhysicalRegister(Reg) && !isAllocatable(Reg))
continue;
RegOp = MO.getReg();
break; // Found vreg operand - leave the loop.
OpenPOWER on IntegriCloud