[LLVMbugs] [Bug 4174] New: LoopIndexSplit executes loop body too many times!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu May 7 08:42:20 PDT 2009


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

           Summary: LoopIndexSplit executes loop body too many times!
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Loop Optimizer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jay.foad at antixlabs.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2970)
 --> (http://llvm.org/bugs/attachment.cgi?id=2970)
test case

With the attached test case, I get:

$ llvm-as -o - s.ll | lli
0
1
2
3

but:

$ llvm-as -o - s.ll | opt -f -loop-index-split | lli
0
1
2
2
3
4

LoopIndexSplit has completely broken how many times the loop iterates! This
test case is reduced from a loop that was mysteriously misbehaving deep inside
a C++ application.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list