commit | 4a4f767235dac50965fc266fb822d9a2e37d5212 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed May 27 02:00:53 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed May 27 02:00:53 2009 +0000 |
tree | 82e79a225d914dc411aa244ae53dec5e780bf285 | |
parent | 72776d219014f6b07485e7dcc5a818849904e720 [diff] |
Teach SCEVExpander to avoid creating over-indexed GEP indices when possible. For example, it now emits %p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 2, i64 %tmp, i64 1 instead of the equivalent but less obvious %p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 0, i64 %tmp, i64 19 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72452 91177308-0d34-0410-b5e6-96231b3b80d8