mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 15:02:16 +00:00
Micro-optimize this.
llvm-svn: 105542
This commit is contained in:
parent
88b785aa23
commit
044a968609
@ -505,8 +505,10 @@ namespace {
|
||||
return false;
|
||||
|
||||
// Primarily, sort the SCEVs by their getSCEVType().
|
||||
if (LHS->getSCEVType() != RHS->getSCEVType())
|
||||
return LHS->getSCEVType() < RHS->getSCEVType();
|
||||
unsigned LST = LHS->getSCEVType();
|
||||
unsigned RST = RHS->getSCEVType();
|
||||
if (LST != RST)
|
||||
return LST < RST;
|
||||
|
||||
// Then, pick an arbitrary sort. Use the profiling data for speed.
|
||||
const FoldingSetNodeIDRef &L = LHS->getProfile();
|
||||
|
Loading…
x
Reference in New Issue
Block a user