[llvm] [AMDGPU] Add target hook to isGlobalMemoryObject (PR #112781)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 06:45:06 PST 2025
================
@@ -1748,18 +1749,43 @@ void GCNScheduleDAGMILive::updateRegionBoundaries(
}
}
+static bool isIGLPInstr(MachineInstr *MI) {
+ switch (MI->getOpcode()) {
+ case AMDGPU::IGLP_OPT:
+ case AMDGPU::SCHED_BARRIER:
+ case AMDGPU::SCHED_GROUP_BARRIER:
+ return true;
+ default:
+ return false;
+ }
+}
+
static bool hasIGLPInstrs(ScheduleDAGInstrs *DAG) {
return any_of(*DAG, [](MachineBasicBlock::iterator MI) {
unsigned Opc = MI->getOpcode();
return Opc == AMDGPU::SCHED_GROUP_BARRIER || Opc == AMDGPU::IGLP_OPT;
----------------
bcahoon wrote:
Why is SCHED_BARRIER left out of hasIGLPInstrs(), but is included in isIGLPInstr?
https://github.com/llvm/llvm-project/pull/112781
More information about the llvm-commits
mailing list