[LLVMdev] sitofp

Pan, Wei wei.pan at intel.com
Mon Jan 19 17:41:26 PST 2015


Hello,

Just wondering if it is correct to fold sitofp(zext(X)) into uitofp(X). The following code is out of clang 

%1 = zext i8 to i32
%2 = sitofp i32 %1 to float

It seems InstCombine does not match this case.

Thanks,
Wei




More information about the llvm-dev mailing list