summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-23 01:25:05 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-23 01:25:05 +0000
commit534f545ef15a22533933af853894f3516ba2eed5 (patch)
tree2e780d789f8509d1850b419e078cd5f2d4cee7b2 /lib/CodeGen/RegAllocLinearScan.cpp
parent2d0a82570a0a87cbee4721df7df91e2c263f3ab8 (diff)
downloadllvm-534f545ef15a22533933af853894f3516ba2eed5.tar.gz
llvm-534f545ef15a22533933af853894f3516ba2eed5.tar.bz2
llvm-534f545ef15a22533933af853894f3516ba2eed5.tar.xz
Fix comments in PhysRegTracker and rename isPhysRegAvail to isRegAvail to be consistent with the other two
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 728c0182c4..0a4077fa15 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -706,7 +706,7 @@ unsigned RA::getFreePhysReg(IntervalPtrs::value_type cur)
for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_);
i != rc->allocation_order_end(*mf_); ++i) {
unsigned reg = *i;
- if (prt_.isPhysRegAvail(reg))
+ if (prt_.isRegAvail(reg))
return reg;
}
return 0;