Don't commit stores with addresses that have indices that are not
authorDan Gohman <gohman@apple.com>
Mon, 7 Sep 2009 22:44:55 +0000 (22:44 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Sep 2009 22:44:55 +0000 (22:44 +0000)
commit80bdc967e946b5d68646ffdee857400f9a120cca
tree78a005c4d5415ea6d7c4c0df94cddb8392e3570f
parentce5de5b52768d0c3b9c0f6c4bc915a17e962202c
Don't commit stores with addresses that have indices that are not
compile-time constant integers or that are out of bounds for their
corresponding static array types. These can cause aliasing that
GlobalOpt assumes won't happen.

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