ConstantInt::get only works for arguments < 128.
authorChris Lattner <sabre@nondot.org>
Mon, 1 Aug 2005 16:52:50 +0000 (16:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Aug 2005 16:52:50 +0000 (16:52 +0000)
commit9cc5f42febe20d413e4bc027e1e0fd1d691869c6
tree071768e9f1061c02f06803945783f5247378ecf6
parentd29b6aa608d69f19b57ebd2ae630b040b1c4951d
ConstantInt::get only works for arguments < 128.

SimplifyLibCalls probably has to be audited to make sure it does not make
this mistake elsewhere.  Also, if this code knows that the type will be
unsigned, obviously one arm of this is dead.

Reid, can you take a look into this further?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22566 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp