[llvm] A SCHED_BARRIER in a bundle should not prevent other SCHED_BARRIERs to be considered (PR #152627)
Yoonseo Choi via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 8 08:25:32 PDT 2025
================
@@ -2508,7 +2508,9 @@ bool SchedGroup::canAddSU(SUnit &SU) const {
++E;
// Return true if all of the bundled MIs can be added to this group.
- return std::all_of(B, E, [this](MachineInstr &MI) { return canAddMI(MI); });
+ return std::all_of(B, E, [this](MachineInstr &MI) {
+ return (MI.isMetaInstruction()) || canAddMI(MI);
----------------
yoonseoch wrote:
I see, will do so.
Initially I did not remove isMetaInstruction inside of canAddMI as I thought that could lead to edges between two sched_barriers, which I thought was unintentional.
https://github.com/llvm/llvm-project/pull/152627
More information about the llvm-commits
mailing list