OSDN Git Service

[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)
commitb0ec6c21b7364421f329a5e8274c6232514c401b
tree865260cb897329ae1bbfcaf8ab572df840d7d754
parent9d362ec2a45c3c23e37308410ed2b66819a991c2
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223270 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/float-shrink-compare.ll