[llvm] [AMDGPU] Enable reordering of VMEM loads during clustering (PR #107986)

Carl Ritson via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 7 22:32:21 PST 2025


================
@@ -483,12 +488,20 @@ static ScheduleDAGInstrs *createSIMachineScheduler(MachineSchedContext *C) {
   return new SIScheduleDAGMI(C);
 }
 
+static bool getReorderWhileLoadClustering(const MachineFunction *MF) {
+  if (!ReorderWhileLoadClustering)
+    return false;
+  return !!MF->getFunction().getFnAttributeAsParsedInteger(
+      "amdgpu-reorder-loads-while-clustering", 1);
----------------
perlfu wrote:

Moved to `getValueAsBool()`.

https://github.com/llvm/llvm-project/pull/107986


More information about the llvm-commits mailing list