diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-06 16:25:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-06 16:25:59 +0000 |
commit | 991425ae70885d508546788fc82d50c9a9f5e2b0 (patch) | |
tree | 23305845bd5d19bbed3aff0fc473924ce30f0468 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 4c4497e834407b798544f91c7649f611f81e9c61 (diff) | |
download | bcm5719-llvm-991425ae70885d508546788fc82d50c9a9f5e2b0.tar.gz bcm5719-llvm-991425ae70885d508546788fc82d50c9a9f5e2b0.zip |
numeric_limits::infinity() apparently does not work on all systems. As a
workaround, use the C HUGE_VAL macro instead.
llvm-svn: 13377
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 7759eec6386..dcfb597f954 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -351,7 +351,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur) DEBUG(std::cerr << "\tassigning stack slot at interval "<< *cur << ":\n"); - float minWeight = std::numeric_limits<float>::infinity(); + float minWeight = HUGE_VAL; unsigned minReg = 0; const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg); for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_); |