[llvm-commits] [llvm] r78889 - /llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
Andreas Bolka
a at bolka.at
Wed Aug 12 20:05:20 PDT 2009
Author: abolka
Date: Wed Aug 12 22:05:20 2009
New Revision: 78889
URL: http://llvm.org/viewvc/llvm-project?rev=78889&view=rev
Log:
Simplify conditional.
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=78889&r1=78888&r2=78889&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp Wed Aug 12 22:05:20 2009
@@ -97,10 +97,7 @@
// 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;
}
More information about the llvm-commits
mailing list