Factor checked library call optimization into a common helper class and use it
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 12 Mar 2010 09:27:41 +0000 (09:27 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 12 Mar 2010 09:27:41 +0000 (09:27 +0000)
commit0b6cb507385c8bd10b6a51b5e45a9b99d8d94798
tree5b215ee4ea7339e068a16c0b92203d6c41f944c8
parentb3e87b2262087cf69f7461e4bc586cdb747434f7
Factor checked library call optimization into a common helper class and use it
to unify the almost identical code in CodeGenPrepare and InstCombineCalls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98338 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/BuildLibCalls.h
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/Scalar/CodeGenPrepare.cpp
lib/Transforms/Utils/BuildLibCalls.cpp