[SimplifyLibCalls] Improve double->float shrinking to consider constants
authorMatthias Braun <matze@braunis.de>
Wed, 3 Dec 2014 21:46:33 +0000 (21:46 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 3 Dec 2014 21:46:33 +0000 (21:46 +0000)
commitd34e4d235428e13810d695400e5a14f5b8752c13
tree3f552197aa59ed38c9ee4dceb125b65e96b5fb84
parent892c923c469bf333909827ae5ae5f0ecd1b4b88f
[SimplifyLibCalls] Improve double->float shrinking to consider constants

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

rdar://19049359

Differential Revision: http://reviews.llvm.org/D6496

llvm-svn: 223270
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/float-shrink-compare.ll