aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-02 07:58:36 +0000
committerChris Lattner <sabre@nondot.org>2011-01-02 07:58:36 +0000
commitddf58010bd4566e8c225aa6ce2481f2f9485a315 (patch)
treeb5e8637aea172d31af5736e0849810837467c642 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent528511b155bdf10ddfc94a17b29e6d5f53f251d2 (diff)
downloadllvm-ddf58010bd4566e8c225aa6ce2481f2f9485a315.zip
llvm-ddf58010bd4566e8c225aa6ce2481f2f9485a315.tar.gz
llvm-ddf58010bd4566e8c225aa6ce2481f2f9485a315.tar.bz2
Allow loop-idiom to run on multiple BB loops, but still only scan the loop
header for now for memset/memcpy opportunities. It turns out that loop-rotate is successfully rotating loops, but *DOESN'T MERGE THE BLOCKS*, turning "for loops" into 2 basic block loops that loop-idiom was ignoring. With this fix, we form many *many* more memcpy and memsets than before, including on the "history" loops in the viterbi benchmark, which look like this: for (j=0; j<MAX_history; ++j) { history_new[i][j+1] = history[2*i][j]; } Transforming these loops into memcpy's speeds up the viterbi benchmark from 11.98s to 3.55s on my machine. Woo. llvm-svn: 122685
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions