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:
ec40eb4
)
Simplify conditional.
author
Andreas Bolka
<a@bolka.at>
Thu, 13 Aug 2009 03:05:20 +0000
(
03:05
+0000)
committer
Andreas Bolka
<a@bolka.at>
Thu, 13 Aug 2009 03:05:20 +0000
(
03:05
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78889
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 3f70c33bd458c105354884efbbc09dd37a02142c..c5a213fa554f1a948ab56fe7d366c1068816e707 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/
lib/Transforms/Scalar/LoopUnroll.cpp
@@
-97,10
+97,7
@@
static unsigned ApproximateLoopSize(const Loop *L) {
// 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
- Size = Size + 10;
+ Size += isa<IntrinsicInst>(I) ? 3 : 10;
} else {
++Size;
}