mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Fix resetCachedCostInfo to reset all of the cost information, instead of
just the NumBlocks field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
079469f649
commit
68cf03a314
@ -172,7 +172,7 @@ namespace llvm {
|
|||||||
|
|
||||||
/// resetCachedFunctionInfo - erase any cached cost info for this function.
|
/// resetCachedFunctionInfo - erase any cached cost info for this function.
|
||||||
void resetCachedCostInfo(Function* Caller) {
|
void resetCachedCostInfo(Function* Caller) {
|
||||||
CachedFunctionInfo[Caller].Metrics.NumBlocks = 0;
|
CachedFunctionInfo[Caller] = FunctionInfo();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user