improve portability to systems that don't have powf/modf (e.g. solaris 9)

patch by Evzen Muller!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-05-15 17:10:24 +00:00
parent 2c13ab2bb8
commit 87565c1d77
4 changed files with 5 additions and 5 deletions

View File

@ -809,7 +809,7 @@ float getConflictWeight(LiveInterval *cur, unsigned Reg, LiveIntervals *li_,
MachineInstr *MI = &*I;
if (cur->liveAt(li_->getInstructionIndex(MI))) {
unsigned loopDepth = loopInfo->getLoopDepth(MI->getParent());
Conflicts += powf(10.0f, (float)loopDepth);
Conflicts += std::pow(10.0f, (float)loopDepth);
}
}
return Conflicts;