mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user