[LLVMbugs] [Bug 527] Need a loop strength reduction pass
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Sep 27 16:04:02 PDT 2005
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=527
sabre at nondot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.6
------- Additional Comments From sabre at nondot.org 2005-09-27 18:04 -------
We have a strength reduction pass now. For the code in this bug, we now generate:
LBB_init_board_1: ; loopexit.1
li r5, 46
stb r5, 0(r4)
stb r5, 1(r4)
stb r5, 2(r4)
stb r5, 3(r4)
stb r5, 4(r4)
stb r5, 5(r4)
addi r4, r4, 7
addi r2, r2, 1
cmpwi cr0, r2, 7
bne cr0, LBB_init_board_1
for the loop, instead of explicit multiplies.
-Chris
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list