licm is wasting time hoisting constant foldable operations,
authorChris Lattner <sabre@nondot.org>
Tue, 31 Aug 2010 23:00:16 +0000 (23:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 31 Aug 2010 23:00:16 +0000 (23:00 +0000)
commit2ac6e2354ac9961b00fa351635ed04baf7fdd234
treede233dd475f72634bcab390c240d82ce7493c4bb
parent232ab949d5ed04c4ab45c763e0597fc3fc3fa5bc
licm is wasting time hoisting constant foldable operations,
instead of hoisting them, just fold them away.  This occurs in the
testcase for PR8041, for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112669 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
test/Transforms/LICM/hoisting.ll
test/Transforms/LICM/scalar_promote.ll