[PATCH] [SimplifyLibCalls] Improve double->float shrinking to consider constants

Matthias Braun mbraun at apple.com
Tue Dec 2 19:38:15 PST 2014


This allows cases like float x; fmin(1.0, x); to be optimized to fminf(1.0f, x);

http://reviews.llvm.org/D6496

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


More information about the llvm-commits mailing list