constant fold ptrtoint(inttoptr) with target data when available. This allows
authorChris Lattner <sabre@nondot.org>
Sat, 11 Aug 2007 23:49:01 +0000 (23:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Aug 2007 23:49:01 +0000 (23:49 +0000)
commit001f7534e0311508cc93831a595785bb177f8a18
tree4546f3841793c7151cbffb9c28ff1cde2a5a91dd
parent8d2e88806be0fbacb1fcba3f04ec57f16b417a11
constant fold ptrtoint(inttoptr) with target data when available.  This allows
us to fold the entry block of PR1602 to false instead of:

br i1 icmp eq (i32 and (i32 ptrtoint (void (%struct.S*)* inttoptr (i64
1 to void (%struct.S*)*) to i32), i32 1), i32 0), label %cond_next, label
%cond_true

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp