Skip to content

Commit 7246b19

Browse files
committed
(1) remove useless code (2) update one test file.
1 parent ccef8f5 commit 7246b19

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm/lib/Target/AMDGPU/GCNSubtarget.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,6 @@ GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,
623623
DispatchID = true;
624624
}
625625

626-
const bool IsNoFlatScratchInitSet =
627-
F.hasFnAttribute("amdgpu-no-flat-scratch-init");
628-
629626
if (ST.hasFlatAddressSpace() && AMDGPU::isEntryFunctionCC(CC) &&
630627
(IsAmdHsaOrMesa || ST.enableFlatScratch()) &&
631628
// FlatScratchInit cannot be true for graphics CC if enableFlatScratch()

llvm/test/CodeGen/AMDGPU/udiv.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ define amdgpu_kernel void @s_udiv_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {
256256
; GCN: ; %bb.0:
257257
; GCN-NEXT: s_load_dwordx4 s[0:3], s[8:9], 0x0
258258
; GCN-NEXT: s_add_i32 s12, s12, s17
259-
; GCN-NEXT: s_mov_b32 flat_scratch_lo, s13
260259
; GCN-NEXT: s_lshr_b32 flat_scratch_hi, s12, 8
260+
; GCN-NEXT: s_mov_b32 flat_scratch_lo, s13
261261
; GCN-NEXT: s_waitcnt lgkmcnt(0)
262262
; GCN-NEXT: v_cvt_f32_u32_e32 v0, s3
263263
; GCN-NEXT: s_sub_i32 s4, 0, s3

0 commit comments

Comments
 (0)