mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Simplify conditional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec40eb411a
commit
62728dc14d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user