diff options
-rw-r--r-- | llvm/include/llvm/CodeGen/LiveIntervals.h | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveIntervals.h b/llvm/include/llvm/CodeGen/LiveIntervals.h index 54b5ca3fee3..1257e157717 100644 --- a/llvm/include/llvm/CodeGen/LiveIntervals.h +++ b/llvm/include/llvm/CodeGen/LiveIntervals.h @@ -55,7 +55,7 @@ namespace llvm { return ranges.back().second; } - bool expired(unsigned index) const { + bool expiredAt(unsigned index) const { return end() <= index; } diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 9e8089a35e5..75d213de115 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -464,7 +464,7 @@ void RA::processActiveIntervals(Intervals::const_iterator cur) // an interval expires this is going to be the last use. in // this case we can reuse the register for a def in the same // instruction - if ((*i)->expired(cur->start() + 1)) { + if ((*i)->expiredAt(cur->start() + 1)) { DEBUG(std::cerr << "\t\tinterval " << **i << " expired\n"); if (reg < MRegisterInfo::FirstVirtualRegister) { clearReservedPhysReg(reg); |