fix a logic bug where we wouldn't promote single store allocas if the
authorChris Lattner <sabre@nondot.org>
Sat, 4 Aug 2007 02:45:02 +0000 (02:45 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 4 Aug 2007 02:45:02 +0000 (02:45 +0000)
commitc69e4915750ac715fced8d63b9601899e8a4d0ae
treedd6a8354b8c96de5fb5e4ab27fbc740802a541c7
parent4f63e76cda86b676e4f0e31fd35b812e2f8dd57f
fix a logic bug where we wouldn't promote single store allocas if the
stored value was a non-instruction value.  Doh.

This increase the # single store allocas from 8982 to 9026, and
speeds up mem2reg on the testcase in PR1432 from 2.17 to 2.13s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40813 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/PromoteMemoryToRegister.cpp