commit | b12a754cce0c1d5542af605203a47820edba454d | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Thu Mar 17 23:51:11 2011 +0000 |
committer | Andrew Trick <atrick@apple.com> | Thu Mar 17 23:51:11 2011 +0000 |
tree | 384ff7a7b2bafcf8653b8c98c11787e00ec92bbe | |
parent | ead71d59a7685fbbbb92162556680abd9001d37b [diff] |
Added isValidRewrite() to check the result of ScalarEvolutionExpander. SCEV may generate expressions composed of multiple pointers, which can lead to invalid GEP expansion. Until we can teach SCEV to follow strict pointer rules, make sure no bad GEPs creep into IR. Fixes rdar://problem/9038671. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127839 91177308-0d34-0410-b5e6-96231b3b80d8