commit | de0e587e63f71afb2ac53c9880c262089fe798bb | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Aug 19 18:18:36 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Aug 19 18:18:36 2009 +0000 |
tree | 624e0cddf4b8c1f4a1dcbca4d0bcbf3240fa650a | |
parent | 6a402dc952ccad3f8fd0d9e272dbdd261f50854e [diff] |
Canonicalize indices in a constantexpr GEP. If Indices exceed the static extents of the static array type, it causes GlobalOpt and other passes to be more conservative. This canonicalization also allows the constant folder to add "inbounds" to GEPs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79440 91177308-0d34-0410-b5e6-96231b3b80d8