commit | 9fa038dc21e966dceb23f9410351e863e3ce1114 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Jan 30 23:13:49 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Jan 30 23:13:49 2007 +0000 |
tree | 7b43b653713f0ae7856a280e0bb0a33cc6079ae4 | |
parent | 73259caa44b03206d1e39e77a7aa375250b1a193 [diff] |
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