only try to fold constantexpr operands when the worklist is first populated,
authorChris Lattner <sabre@nondot.org>
Thu, 15 Oct 2009 04:59:28 +0000 (04:59 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Oct 2009 04:59:28 +0000 (04:59 +0000)
commit2ee743b53b32ffc57739abc83667a0c15bb43a71
tree9660c27bc8c3e974f87ba447291c28f783634844
parente2cc1ad2306599fcff8d1bb9ce517cf0c632f602
only try to fold constantexpr operands when the worklist is first populated,
don't bother every time going around the main worklist.  This speeds up a
release-asserts opt -std-compile-opts on 403.gcc by about 4% (1.5s).  It
seems to speed up the most expensive instances of instcombine by ~10%.

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