Skip to content

Commit f06e57f

Browse files
committed
A SCHED_BARRIER in a bundle should not prevent other SCHED_BARRIER to be considered
1 parent 82046c7 commit f06e57f

File tree

2 files changed

+289
-1
lines changed

2 files changed

+289
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,9 @@ bool SchedGroup::canAddSU(SUnit &SU) const {
25082508
++E;
25092509

25102510
// Return true if all of the bundled MIs can be added to this group.
2511-
return std::all_of(B, E, [this](MachineInstr &MI) { return canAddMI(MI); });
2511+
return std::all_of(B, E, [this](MachineInstr &MI) {
2512+
return (MI.isMetaInstruction()) || canAddMI(MI);
2513+
});
25122514
}
25132515

25142516
void SchedGroup::initSchedGroup() {

0 commit comments

Comments
 (0)