mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Only check the ordering if there is an ordering for each nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1129,8 +1129,8 @@ bool bu_ls_rr_sort::operator()(const SUnit *left, const SUnit *right) const {
|
|||||||
|
|
||||||
// Prefer an ordering where the lower the non-zero order number, the higher
|
// Prefer an ordering where the lower the non-zero order number, the higher
|
||||||
// the preference.
|
// the preference.
|
||||||
if ((LOrder || ROrder) && LOrder != ROrder)
|
if (LOrder && ROrder && LOrder != ROrder)
|
||||||
return LOrder != 0 && (LOrder < ROrder || ROrder == 0);
|
return LOrder < ROrder;
|
||||||
|
|
||||||
unsigned LPriority = SPQ->getNodePriority(left);
|
unsigned LPriority = SPQ->getNodePriority(left);
|
||||||
unsigned RPriority = SPQ->getNodePriority(right);
|
unsigned RPriority = SPQ->getNodePriority(right);
|
||||||
|
Reference in New Issue
Block a user