[PATCH] [SimplifyLibCalls] Enable double to float shrinking for copysign

Matthias Braun mbraun at apple.com
Tue Dec 2 19:31:56 PST 2014


Allow double to float shrinking when ConstantFPs are involved.
For example this will turn float x; fmin(1.0, (double)x); into fminf(1.0f, x);

http://reviews.llvm.org/D6495

Files:
  lib/Transforms/Utils/SimplifyLibCalls.cpp
  test/Transforms/InstCombine/float-shrink-compare.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6495.16847.patch
Type: text/x-patch
Size: 1542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141203/0be7eafa/attachment.bin>


More information about the llvm-commits mailing list