Reapply r233062: "float2int": Add a new pass to demote from float to int where possible.
authorJames Molloy <james.molloy@arm.com>
Wed, 25 Mar 2015 10:03:42 +0000 (10:03 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 25 Mar 2015 10:03:42 +0000 (10:03 +0000)
commit09f1b672cbffc40bc3cda5f75fb07fbc505f7268
tree78a9f151ec41e98e29240b12c578733eb1e9ede6
parentc0ffe0f06130f3f8d7bc3660f1a5979dcdb67624
Reapply r233062: "float2int": Add a new pass to demote from float to int where possible.

Now with a fix for PR23008 and extra regression test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233175 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/InitializePasses.h
include/llvm/LinkAllPasses.h
include/llvm/Transforms/Scalar.h
lib/Transforms/IPO/PassManagerBuilder.cpp
lib/Transforms/Scalar/CMakeLists.txt
lib/Transforms/Scalar/Float2Int.cpp [new file with mode: 0644]
lib/Transforms/Scalar/Scalar.cpp
test/Transforms/Float2Int/basic.ll [new file with mode: 0644]
test/Transforms/Float2Int/toolarge.ll [new file with mode: 0644]