diff options
| author | Dan Gohman <gohman@apple.com> | 2009-05-27 02:00:53 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-05-27 02:00:53 +0000 |
| commit | 1789362d703168f48181c523fcfa7f562dc5104c (patch) | |
| tree | 0200bd054e8dec95487e21ab52d1c3d57bc8c38e /clang/lib/CodeGen/CGExprScalar.cpp | |
| parent | 776e4c8d359ebf0fa2510f8bf3a72797537be7d1 (diff) | |
| download | bcm5719-llvm-1789362d703168f48181c523fcfa7f562dc5104c.tar.gz bcm5719-llvm-1789362d703168f48181c523fcfa7f562dc5104c.zip | |
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
llvm-svn: 72452
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
0 files changed, 0 insertions, 0 deletions

