Transform @llvm.objectsize to integer if the argument is a result of malloc of known...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 6 Mar 2010 01:01:42 +0000 (01:01 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 6 Mar 2010 01:01:42 +0000 (01:01 +0000)
commitfc8ccfedbba651e324d827de6693aad1491314c7
treed77634f669eb929c346ffffd918ce0bc83bb21ab
parente623050048e56a512e77c28b69925e7dc1efa6ad
Transform @llvm.objectsize to integer if the argument is a result of malloc of known size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/objsize.ll