mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 12:33:17 +00:00
Simplify conditional.
llvm-svn: 78889
This commit is contained in:
parent
68a2326175
commit
a2220fbb8d
@ -97,10 +97,7 @@ static unsigned ApproximateLoopSize(const Loop *L) {
|
|||||||
// is higher than other instructions. Here 3 and 10 are magic
|
// is higher than other instructions. Here 3 and 10 are magic
|
||||||
// numbers that help one isolated test case from PR2067 without
|
// numbers that help one isolated test case from PR2067 without
|
||||||
// negatively impacting measured benchmarks.
|
// negatively impacting measured benchmarks.
|
||||||
if (isa<IntrinsicInst>(I))
|
Size += isa<IntrinsicInst>(I) ? 3 : 10;
|
||||||
Size = Size + 3;
|
|
||||||
else
|
|
||||||
Size = Size + 10;
|
|
||||||
} else {
|
} else {
|
||||||
++Size;
|
++Size;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user