mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 00:51:56 +00:00
Add comment.
llvm-svn: 48567
This commit is contained in:
parent
9d2ead09ba
commit
c9c6d88ee5
@ -101,6 +101,10 @@ static unsigned ApproximateLoopSize(const Loop *L) {
|
||||
} else if (isa<DbgInfoIntrinsic>(I)) {
|
||||
// Ignore debug instructions
|
||||
} else if (isa<CallInst>(I)) {
|
||||
// Estimate size overhead introduced by call instructions which
|
||||
// is higher than other instructions. Here 3 and 10 are magic
|
||||
// numbers that help one isolated test case from PR2067 without
|
||||
// negatively impacting measured benchmarks.
|
||||
if (isa<IntrinsicInst>(I))
|
||||
Size = Size + 3;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user