From: Sanjay Patel Date: Thu, 8 Mar 2018 21:30:56 +0000 (+0000) Subject: [AMDGPU] fix test to survive more FP undef constant folding X-Git-Tag: llvmorg-7.0.0-rc1~11060 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=672ad3269bb08fb889df45a735b459661ea59c4f;p=platform%2Fupstream%2Fllvm.git [AMDGPU] fix test to survive more FP undef constant folding llvm-svn: 327066 --- diff --git a/llvm/test/CodeGen/AMDGPU/debug-value.ll b/llvm/test/CodeGen/AMDGPU/debug-value.ll index 8fa05f6..75b2114 100644 --- a/llvm/test/CodeGen/AMDGPU/debug-value.ll +++ b/llvm/test/CodeGen/AMDGPU/debug-value.ll @@ -22,15 +22,16 @@ bb: %tmp15 = bitcast i8 addrspace(1)* %tmp14 to <4 x float> addrspace(1)* %tmp16 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %tmp15, i64 undef %tmp17 = load <4 x float>, <4 x float> addrspace(1)* %tmp16, align 16 - %tmp18 = fsub <4 x float> undef, %tmp17 - %tmp19 = fadd float undef, 0.000000e+00 + %tmp18 = fsub <4 x float> %tmp17, %tmp17 + %ext = extractelement <4 x float> %tmp18, i32 1 + %tmp19 = fadd float %ext, 0.000000e+00 %tmp20 = fcmp oeq float %tmp19, 0.000000e+00 br i1 %tmp20, label %bb21, label %bb25 bb21: ; preds = %bb - %tmp22 = fmul <4 x float> %tmp18, undef - %tmp23 = fadd <4 x float> undef, %tmp22 - %tmp24 = fmul <4 x float> %tmp23, undef + %tmp22 = fmul <4 x float> %tmp18, %tmp18 + %tmp23 = fadd <4 x float> %tmp22, %tmp22 + %tmp24 = fmul <4 x float> %tmp23, %tmp23 br label %bb28 bb25: ; preds = %bb