diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-02 06:34:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-02 06:34:44 +0000 |
commit | 28e0e4e11eadb4597fd11a7bc484c512e03129cb (patch) | |
tree | 8b3c0e85707b2359e4291a80b53af72682211218 /llvm/lib/Support/StringMap.cpp | |
parent | be96c646dc9c617c57a0e634954e588b696514f3 (diff) | |
download | llvm-28e0e4e11eadb4597fd11a7bc484c512e03129cb.zip llvm-28e0e4e11eadb4597fd11a7bc484c512e03129cb.tar.gz llvm-28e0e4e11eadb4597fd11a7bc484c512e03129cb.tar.bz2 |
Pass the type of the store access, not the type of the store, into the
target hook. This allows us to codegen a loop as:
LBB1_1: @cond_next
mov r2, #0
str r2, [r0, +r3, lsl #2]
add r3, r3, #1
cmn r3, #1
bne LBB1_1 @cond_next
instead of:
LBB1_1: @cond_next
mov r2, #0
str r2, [r0], #+4
add r3, r3, #1
cmn r3, #1
bne LBB1_1 @cond_next
This looks the same, but has one fewer induction variable (and therefore,
one fewer register) live in the loop.
llvm-svn: 35592
Diffstat (limited to 'llvm/lib/Support/StringMap.cpp')
0 files changed, 0 insertions, 0 deletions