mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Update heuritics that estimates cost of call instructions.
llvm-svn: 48474
This commit is contained in:
parent
861708b8bb
commit
7efcb7de6b
@ -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…
Reference in New Issue
Block a user