Skip to content

Commit 363071c

Browse files
committed
Guard default enablement to make it HSA only for now.
1 parent 1914aeb commit 363071c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

llvm/lib/Target/AMDGPU/SIProgramInfo.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,18 @@ static uint64_t getComputePGMRSrc1Reg(const SIProgramInfo &ProgInfo,
8585
S_00B848_PRIV(ProgInfo.Priv) |
8686
S_00B848_DEBUG_MODE(ProgInfo.DebugMode) |
8787
S_00B848_WGP_MODE(ProgInfo.WgpMode) |
88-
S_00B848_MEM_ORDERED(ProgInfo.MemOrdered) |
89-
S_00B848_FWD_PROGRESS(ProgInfo.FwdProgress);
88+
S_00B848_MEM_ORDERED(ProgInfo.MemOrdered);
9089

9190
if (ST.hasDX10ClampMode())
9291
Reg |= S_00B848_DX10_CLAMP(ProgInfo.DX10Clamp);
9392

9493
if (ST.hasIEEEMode())
9594
Reg |= S_00B848_IEEE_MODE(ProgInfo.IEEEMode);
9695

96+
// TODO: in the long run we will want to enable this unconditionally.
97+
if (ST.getTargetTriple().getOS() == Triple::OSType::AMDHSA)
98+
Reg |= S_00B848_FWD_PROGRESS(ProgInfo.FwdProgress);
99+
97100
if (ST.hasRrWGMode())
98101
Reg |= S_00B848_RR_WG_MODE(ProgInfo.RrWgMode);
99102

llvm/test/CodeGen/AMDGPU/amdpal-msgpack-ieee.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; SI-DAG: '0x2e12 (COMPUTE_PGM_RSRC1)': 0xaf0000{{$}}
88
; VI-DAG: '0x2e12 (COMPUTE_PGM_RSRC1)': 0xaf02c0{{$}}
99
; GFX9-DAG: '0x2e12 (COMPUTE_PGM_RSRC1)': 0xaf0000{{$}}
10-
; GFX12-DAG: '0x2e12 (COMPUTE_PGM_RSRC1)': 0xe00f0000{{$}}
10+
; GFX12-DAG: '0x2e12 (COMPUTE_PGM_RSRC1)': 0x600f0000{{$}}
1111
define amdgpu_cs half @cs_amdpal(half %arg0) #0 {
1212
%add = fadd half %arg0, 1.0
1313
ret half %add

0 commit comments

Comments
 (0)