Fix a logic error in ValueIsOnlyUsedLocallyOrStoredToOneGlobal that caused
authorChris Lattner <sabre@nondot.org>
Fri, 14 Sep 2007 03:41:21 +0000 (03:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Sep 2007 03:41:21 +0000 (03:41 +0000)
commit5e6e494a977614568ed5582dacb548f8d466d398
tree82e2cbbde0ed00384801a7fa82c3f68aac76f11e
parentce4e7485651fbccf41578c9bb149995de099021f
Fix a logic error in ValueIsOnlyUsedLocallyOrStoredToOneGlobal that caused
miscompilation of 188.ammp.  Reject select and bitcast in
ValueIsOnlyUsedLocallyOrStoredToOneGlobal because RewriteHeapSROALoadUser can't handle it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41950 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp