Fix GlobalOpt to avoid committing a store if the address getelementptr
authorDan Gohman <gohman@apple.com>
Mon, 7 Sep 2009 22:40:13 +0000 (22:40 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Sep 2009 22:40:13 +0000 (22:40 +0000)
commitc62482d4edecd416e6529e31427fa6fd8a9b7ece
treec5bd56008e83372345f36ab29332a9f921f35a30
parent4a7e6b7a15cea1f8ead4d1bb1cf2e3a39a339cb3
Fix GlobalOpt to avoid committing a store if the address getelementptr
is missing the inbounds flag. This is slightly conservative, but it
avoids problems with two constants pointing to the same address but
getting distinct entries in the Memory DenseMap.

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