aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CompressionTest.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-01-14 05:33:01 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-01-14 05:33:01 +0000
commit8923cc5470a1a6c728c800a409d1c6c86d52825a (patch)
tree56089b2fdf800645dc970b329c3a6932f1fcd790 /llvm/unittests/Support/CompressionTest.cpp
parenteeea8970b4b12b5493d603ceff960e4b19296c1f (diff)
downloadllvm-8923cc5470a1a6c728c800a409d1c6c86d52825a.zip
llvm-8923cc5470a1a6c728c800a409d1c6c86d52825a.tar.gz
llvm-8923cc5470a1a6c728c800a409d1c6c86d52825a.tar.bz2
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
Diffstat (limited to 'llvm/unittests/Support/CompressionTest.cpp')
0 files changed, 0 insertions, 0 deletions