[llvm-commits] [llvm] r48567 - /llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
Devang Patel
dpatel at apple.com
Wed Mar 19 16:05:52 PDT 2008
Author: dpatel
Date: Wed Mar 19 18:05:52 2008
New Revision: 48567
URL: http://llvm.org/viewvc/llvm-project?rev=48567&view=rev
Log:
Add comment.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp?rev=48567&r1=48566&r2=48567&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp Wed Mar 19 18:05:52 2008
@@ -101,6 +101,10 @@
} 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
More information about the llvm-commits
mailing list