1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00

Add comment.

llvm-svn: 48567
This commit is contained in:
Devang Patel 2008-03-19 23:05:52 +00:00
parent 9d2ead09ba
commit c9c6d88ee5

View File

@ -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