diff options
author | Lang Hames <lhames@gmail.com> | 2012-02-14 03:04:29 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-02-14 03:04:29 +0000 |
commit | 3365179018f405f936e141f9f286a60041f4d85f (patch) | |
tree | 3cb8728b62a5adb3d36cc84b1d2d400e9ec8489d /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 914c7e62e844e4bb3de62087077ca9802fc235d6 (diff) | |
download | bcm5719-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.cpp | 3 |
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. |