mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-31 11:32:42 +00:00
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
230293b4c5
commit
ac3844d3f9
@ -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…
x
Reference in New Issue
Block a user