https://bugs.llvm.org/show_bug.cgi?id=45470

Changpeng Fang <changpeng.f...@amd.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |---
             Status|RESOLVED                    |REOPENED

--- Comment #3 from Changpeng Fang <changpeng.f...@amd.com> ---
Thanks for looking into this. Right the reduced test does not reproduce the
issue. So I attached the original one extract.O1.ll:

We don't expect to see "chfang(float undef)" after
opt -O1 -gvn extraxt.O1.ll -S: 


bb1355:                                           ; preds = %bb1379, %bb1346
  %tmp1356 = phi i32 [ 0, %bb1346 ], [ %tmp1383, %bb1379 ]
  %tmp1357 = shl i32 %tmp1356, 2
  %tmp1358 = getelementptr inbounds [16 x i16], [16 x i16] addrspace(5)* %tmp,
i32 0, i32 %tmp1357
  store i16 11878, i16 addrspace(5)* %tmp1358, align 2, !tbaa !28
  ...


.loopexit:                                        ; preds = %.preheader,
%.loopexit93
  %tmp1394 = bitcast [16 x i16] addrspace(5)* %tmp to half addrspace(5)*
  %tmp1395 = load half, half addrspace(5)* %tmp1394, align 2, !tbaa !18
  %tmp1396 = fpext half %tmp1395 to float
  call void @chfang(float %tmp1396)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to