From 3ec8803f5350e387b6d717430ff0e4b2fe745ebb Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 8 May 2018 18:43:34 +0000 Subject: [PATCH] AMDGPU: Don't use undef in a test llvm-svn: 331795 --- llvm/test/CodeGen/AMDGPU/global-smrd-unknown.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/CodeGen/AMDGPU/global-smrd-unknown.ll b/llvm/test/CodeGen/AMDGPU/global-smrd-unknown.ll index 8a576e6480a1..90340447a49e 100644 --- a/llvm/test/CodeGen/AMDGPU/global-smrd-unknown.ll +++ b/llvm/test/CodeGen/AMDGPU/global-smrd-unknown.ll @@ -4,12 +4,12 @@ ; GCN: flat_load_dword ; GCN: flat_load_dword ; GCN: flat_store_dword -define amdgpu_kernel void @unknown_memdep_analysis(float addrspace(1)* nocapture readonly %arg) #0 { +define amdgpu_kernel void @unknown_memdep_analysis(float addrspace(1)* nocapture readonly %arg, float %arg1) #0 { bb: %tmp53 = load float, float addrspace(1)* undef, align 4 %tmp54 = getelementptr inbounds float, float addrspace(1)* %arg, i32 31 %tmp55 = load float, float addrspace(1)* %tmp54, align 4 - %tmp56 = tail call float @llvm.fmuladd.f32(float undef, float %tmp53, float %tmp55) + %tmp56 = tail call float @llvm.fmuladd.f32(float %arg1, float %tmp53, float %tmp55) store float %tmp56, float addrspace(1)* undef, align 4 ret void }