OSDN Git Service

Refactor several ConstantExpr::getXXX calls with ConstantInt arguments
authorReid Spencer <rspencer@reidspencer.com>
Sun, 25 Mar 2007 05:33:51 +0000 (05:33 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 25 Mar 2007 05:33:51 +0000 (05:33 +0000)
commit7177c3a60a1eb48b0d10d31350dea8935d38ee43
tree77d142200023bc8b267ae675d393cbcad63acd8c
parent86c9c341e97a4f08e4984077af57bf106d980db0
Refactor several ConstantExpr::getXXX calls with ConstantInt arguments
using the facilities of APInt. While this duplicates a tiny fraction of
the constant folding code, it also makes the code easier to read and
avoids large ConstantExpr overhead for simple, known computations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp