[LLVMbugs] [Bug 964] switch lowering makes ugly code for a simple scanning loop

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Oct 22 14:38:24 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=964

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sabre at nondot.org  2006-10-22 16:38 -------
Implemented.  Testcase here: Regression/CodeGen/Generic/SwitchLowering.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061016/038932.html

We now compile the inner loop to:

LBB1_1: #bb
        movb (%esi), %al
        incl %esi
        testb %al, %al
        je LBB1_2       #bb7
LBB1_3: #bb
        cmpb $120, %al
        jne LBB1_1      #bb

-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