Skip to content

Commit c4bb863

Browse files
committed
Addressesd the reviewed feedback in AMDGPUTargetMachine.cpp
1 parent 88a20df commit c4bb863

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,13 +1856,13 @@ bool GCNPassConfig::addRegAssignAndRewriteOptimized() {
18561856
// allocations.
18571857
// addPass(&AMDGPUUpdateAllocatedVGPRLiveRangesID);
18581858

1859-
// Now we can perform register-coalescing on remaining copies,
1860-
// mainly sgpr copies and wwm-vgpr copies.
1861-
addPass(&RegisterCoalescerID);
1862-
18631859
// Optimize EXEC-mask related instructions around SGPR register class.
18641860
if (OptExecMaskPreRA)
18651861
addPass(&SIOptimizeExecMaskingPreRAID);
1862+
1863+
// Now we can perform register-coalescing on remaining copies,
1864+
// mainly sgpr copies and wwm-vgpr copies.
1865+
addPass(&RegisterCoalescerID);
18661866
}
18671867

18681868
addPass(createSGPRAllocPass(true));

0 commit comments

Comments
 (0)