[all-commits] [llvm/llvm-project] 623295: [MISched][scheduleDump] Use stable_sort to prevent...
Francesco Petrogalli via All-commits
all-commits at lists.llvm.org
Tue Jun 13 05:44:05 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 623295a1d0cc8d0ace354b1b97959df49be8a86e
https://github.com/llvm/llvm-project/commit/623295a1d0cc8d0ace354b1b97959df49be8a86e
Author: Francesco Petrogalli <francesco.petrogalli at apple.com>
Date: 2023-06-13 (Tue, 13 Jun 2023)
Changed paths:
M llvm/lib/CodeGen/MachineScheduler.cpp
Log Message:
-----------
[MISched][scheduleDump] Use stable_sort to prevent test failures.
When building the compiler with -DLLVM_ENABLE_EXPENSIVE_CHECKS=ON,
sometimes resources that are dumped in scheduled traces gets reordered
even if they are booked in the same cycle. Using `stable_sort`
guarantees that such occasional reordering does not happen.
This change should fix failures like the one seen in
https://lab.llvm.org/buildbot/#/builders/16/builds/49592.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D152800
More information about the All-commits
mailing list