| commit | 8923cc5470a1a6c728c800a409d1c6c86d52825a | [log] [tgz] |
|---|---|---|
| author | Mehdi Amini <mehdi.amini@apple.com> | Wed Jan 14 05:33:01 2015 +0000 |
| committer | Mehdi Amini <mehdi.amini@apple.com> | Wed Jan 14 05:33:01 2015 +0000 |
| tree | 56089b2fdf800645dc970b329c3a6932f1fcd790 | |
| parent | eeea8970b4b12b5493d603ceff960e4b19296c1f [diff] |
Fold a loop for array processing in ComputeLinearIndex
When processing an array, every Elt has the same layout, it is
useless to recursively call each ComputeLinearIndex on each element.
Just do it once and multiply by the number of elements.
Differential Revision: http://reviews.llvm.org/D6832
llvm-svn: 225949