mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Update heuritics that estimates cost of call instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
257f75d0b8
commit
b176038f98
@ -100,6 +100,11 @@ static unsigned ApproximateLoopSize(const Loop *L) {
|
||||
// Ignore instructions only used by the loop terminator.
|
||||
} else if (isa<DbgInfoIntrinsic>(I)) {
|
||||
// Ignore debug instructions
|
||||
} else if (isa<CallInst>(I)) {
|
||||
if (isa<IntrinsicInst>(I))
|
||||
Size = Size + 3;
|
||||
else
|
||||
Size = Size + 10;
|
||||
} else {
|
||||
++Size;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user