diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-23 01:25:05 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-23 01:25:05 +0000 |
commit | d42c2f24ecff51c62b49561a57d58fb0802bc4d8 (patch) | |
tree | 454045f8f186d23a5b1490813c59e7bcd50a1c86 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 378157c3d72faa3c8678999ab4c94a76735cff18 (diff) | |
download | bcm5719-llvm-d42c2f24ecff51c62b49561a57d58fb0802bc4d8.tar.gz bcm5719-llvm-d42c2f24ecff51c62b49561a57d58fb0802bc4d8.zip |
Fix comments in PhysRegTracker and rename isPhysRegAvail to isRegAvail to be consistent with the other two
llvm-svn: 11723
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 728c0182c48..0a4077fa159 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/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; |