1. Make the APInt variable do the binary operation stuff if possible
authorZhou Sheng <zhousheng00@gmail.com>
Thu, 29 Mar 2007 01:57:21 +0000 (01:57 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Thu, 29 Mar 2007 01:57:21 +0000 (01:57 +0000)
commit97b52c260f5f17b8738b6083c63e15286094a7c8
tree58b615fbedab7b9172e04ab1e563150de72433f5
parentab47895c6bfe3a4b95c849fe1894af6a187d92e0
1. Make the APInt variable do the binary operation stuff if possible
   instead of using ConstantExpr::getXX.
2. Use constant reference to APInt if possible instead of expensive
   APInt copy.

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