[LLVMbugs] [Bug 8078] New: Indvars Pass Turns a Counted Loop into an Infinite Loop

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 3 18:47:38 PDT 2010


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

           Summary: Indvars Pass Turns a Counted Loop into an Infinite
                    Loop
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tjablin at cs.princeton.edu
                CC: llvmbugs at cs.uiuc.edu


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

Transforms an ordinary counted loop into an infinite loop. I have attached C
source code and llvm bitcode to demonstrate the bug. To reproduce:

$ clang -O2 ./KS-2.c -emit-llvm -c -o ks.all.ll
$ clang ks.all.ll -o ks.all
$ ./ks.all
0 + 1: 1
$ opt ks.all.ll -indvars -o ks.all.indvars.ll
$ clang ks.all.indvars.ll -o ks.all.indvars
$ ./ks.all.indvars
0 + 1: 1
0 + 1: 1
0 + 1: 1
   ...

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