Skip to content

Commit 997dedf

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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));

llvm/test/CodeGen/AMDGPU/WaveTransform/wave-transform-llc-pipeline.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@
385385
; GCN-O3-NEXT: AMDGPU Control Flow Wave Transform
386386
; GCN-O3-NEXT: Slot index numbering
387387
; GCN-O3-NEXT: Live Interval Analysis
388+
; GCN-O3-NEXT: SI optimize exec mask operations pre-RA
388389
; GCN-O3-NEXT: Machine Natural Loop Construction
389390
; GCN-O3-NEXT: Register Coalescer
390-
; GCN-O3-NEXT: SI optimize exec mask operations pre-RA
391391
; GCN-O3-NEXT: Machine Block Frequency Analysis
392392
; GCN-O3-NEXT: Debug Variable Analysis
393393
; GCN-O3-NEXT: Live Stack Slot Analysis

0 commit comments

Comments
 (0)