[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


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:

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


------- 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