projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230293b
)
Add comment.
author
Devang Patel
<dpatel@apple.com>
Wed, 19 Mar 2008 23:05:52 +0000
(23:05 +0000)
committer
Devang Patel
<dpatel@apple.com>
Wed, 19 Mar 2008 23:05:52 +0000
(23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48567
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopUnroll.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopUnroll.cpp
b/lib/Transforms/Scalar/LoopUnroll.cpp
index 71a5955b76b0d8d82b09d9a751872645570f6a55..1962c14d5d6c64ad669054da0760d99ee8501221 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/
lib/Transforms/Scalar/LoopUnroll.cpp
@@
-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