OSDN Git Service

Change constant folding APIs to take an optional TargetData, and change
authorChris Lattner <sabre@nondot.org>
Tue, 30 Jan 2007 23:13:49 +0000 (23:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Jan 2007 23:13:49 +0000 (23:13 +0000)
commit9fa038dc21e966dceb23f9410351e863e3ce1114
tree7b43b653713f0ae7856a280e0bb0a33cc6079ae4
parent73259caa44b03206d1e39e77a7aa375250b1a193
Change constant folding APIs to take an optional TargetData, and change
ConstantFoldInstOperands/ConstantFoldCall to take a pointer to an array
of operands + size, instead of an std::vector.

In some cases, switch to using a SmallVector instead of a vector.
This allows us to get rid of some special case gross code that was there
to avoid the cost of constructing a vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33670 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/Local.cpp