This should't block committing, but could you please also add a test for a constant which does lose info when converted to float, and so fails this optimization. Thanks, Pete http://reviews.llvm.org/D6496