mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Use std::numeric_limits<float>::infinity() instead of
std::numeric_limits<float>::max() for weighting preallocated intervals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11427 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ef51373c4
commit
6ab5c15962
@ -436,7 +436,7 @@ bool LiveIntervals::overlapsAliases(const Interval& lhs,
|
||||
LiveIntervals::Interval::Interval(unsigned r)
|
||||
: reg(r),
|
||||
weight((MRegisterInfo::isPhysicalRegister(r) ?
|
||||
std::numeric_limits<float>::max() : 0.0F))
|
||||
std::numeric_limits<float>::infinity() : 0.0F))
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -641,7 +641,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
|
||||
|
||||
DEBUG(std::cerr << "\t\tassigning stack slot at interval "<< *cur << ":\n");
|
||||
|
||||
float minWeight = std::numeric_limits<float>::max();
|
||||
float minWeight = std::numeric_limits<float>::infinity();
|
||||
unsigned minReg = 0;
|
||||
const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg);
|
||||
for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user