diff options
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/machine-function-info-cwsr.ll')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/machine-function-info-cwsr.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/machine-function-info-cwsr.ll b/llvm/test/CodeGen/AMDGPU/machine-function-info-cwsr.ll index cd428be729ae..966e5c8f460d 100644 --- a/llvm/test/CodeGen/AMDGPU/machine-function-info-cwsr.ll +++ b/llvm/test/CodeGen/AMDGPU/machine-function-info-cwsr.ll @@ -35,7 +35,8 @@ define amdgpu_cs void @realign_stack(<32 x i32> %x) #0 { ; CHECK-LABEL: {{^}}name: realign_stack ; CHECK: scratchReservedForDynamicVGPRs: 512 %v = alloca <32 x i32>, align 128, addrspace(5) - store <32 x i32> %x, ptr addrspace(5) %v + ; use volatile store to avoid promotion of alloca to registers + store volatile <32 x i32> %x, ptr addrspace(5) %v call amdgpu_gfx void @callee(i32 71) ret void } |
