Reapply r233175 and r233183: float2int.
authorJames Molloy <james.molloy@arm.com>
Fri, 27 Mar 2015 10:36:57 +0000 (10:36 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 27 Mar 2015 10:36:57 +0000 (10:36 +0000)
commitfb45b9fafcc3f626c98e42a69b2ee3ea8ece1a92
treedd52485077c4eab1fe998506e4fc38abc3da5559
parent9217916725713c00f17cb64123e8dffdae843eb7
Reapply r233175 and r233183: float2int.

This re-adds float2int to the tree, after fixing PR23038. It turns
out the argument to APSInt() is true-if-unsigned, rather than
true-if-signed :(. Added testcase and explanatory comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233370 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/float2int-optnone.ll [new file with mode: 0644]
test/Transforms/Float2Int/toolarge.ll [new file with mode: 0644]