mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Undo spill weight tweak. Need to investigate the performance regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -121,12 +121,8 @@ namespace llvm {
|
||||
return getBaseIndex(index) + InstrSlots::STORE;
|
||||
}
|
||||
|
||||
static float getSpillWeight(bool isDef, bool isUse, bool isMem,
|
||||
unsigned loopDepth) {
|
||||
float Weight = isDef;
|
||||
if (isUse)
|
||||
Weight += isMem ? 1.2f : 1.0f;
|
||||
return Weight * powf(10.0F, (float)loopDepth);
|
||||
static float getSpillWeight(bool isDef, bool isUse, unsigned loopDepth) {
|
||||
return (isDef + isUse) * powf(10.0F, (float)loopDepth);
|
||||
}
|
||||
|
||||
typedef Reg2IntervalMap::iterator iterator;
|
||||
|
Reference in New Issue
Block a user