mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Micro-optimize this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41a628237c
commit
ef07158c11
@ -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…
Reference in New Issue
Block a user