@@ -1290,13 +1290,13 @@ LLVM_DUMP_METHOD void ScheduleDAGMI::dumpScheduleTraceTopDown() const {
1290
1290
SchedModel.getWriteProcResEnd (SC)));
1291
1291
1292
1292
if (MISchedSortResourcesInTrace)
1293
- llvm::stable_sort (ResourcesIt,
1294
- []( const MCWriteProcResEntry &LHS ,
1295
- const MCWriteProcResEntry &RHS) -> bool {
1296
- return LHS. AcquireAtCycle < RHS. AcquireAtCycle ||
1297
- (LHS.AcquireAtCycle == RHS. AcquireAtCycle &&
1298
- LHS. ReleaseAtCycle < RHS.ReleaseAtCycle );
1299
- });
1293
+ llvm::stable_sort (
1294
+ ResourcesIt ,
1295
+ []( const MCWriteProcResEntry &LHS,
1296
+ const MCWriteProcResEntry &RHS) -> bool {
1297
+ return std::tie (LHS.AcquireAtCycle , LHS. ReleaseAtCycle ) <
1298
+ std::tie (RHS. AcquireAtCycle , RHS.ReleaseAtCycle );
1299
+ });
1300
1300
for (const MCWriteProcResEntry &PI : ResourcesIt) {
1301
1301
C = FirstCycle;
1302
1302
const std::string ResName =
@@ -1371,13 +1371,13 @@ LLVM_DUMP_METHOD void ScheduleDAGMI::dumpScheduleTraceBottomUp() const {
1371
1371
SchedModel.getWriteProcResEnd (SC)));
1372
1372
1373
1373
if (MISchedSortResourcesInTrace)
1374
- llvm::stable_sort (ResourcesIt,
1375
- []( const MCWriteProcResEntry &LHS ,
1376
- const MCWriteProcResEntry &RHS) -> bool {
1377
- return LHS. AcquireAtCycle < RHS. AcquireAtCycle ||
1378
- (LHS.AcquireAtCycle == RHS. AcquireAtCycle &&
1379
- LHS. ReleaseAtCycle < RHS.ReleaseAtCycle );
1380
- });
1374
+ llvm::stable_sort (
1375
+ ResourcesIt ,
1376
+ []( const MCWriteProcResEntry &LHS,
1377
+ const MCWriteProcResEntry &RHS) -> bool {
1378
+ return std::tie (LHS.AcquireAtCycle , LHS. ReleaseAtCycle ) <
1379
+ std::tie (RHS. AcquireAtCycle , RHS.ReleaseAtCycle );
1380
+ });
1381
1381
for (const MCWriteProcResEntry &PI : ResourcesIt) {
1382
1382
C = FirstCycle;
1383
1383
const std::string ResName =
0 commit comments