[LLVMbugs] [Bug 3295] New: loop-reduce / scalar-evolution crash expanding {0, +, 2, +, 2} addrec

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 7 21:43:34 PST 2009


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

           Summary: loop-reduce / scalar-evolution crash expanding
                    {0,+,2,+,2} addrec
           Product: libraries
           Version: trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Loop Optimizer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2369)
 --> (http://llvm.org/bugs/attachment.cgi?id=2369)
testcase

opt -loop-reduce b.bc crashes trying to emit an addrec of {0,+,2,+,2} because
the SCEV for %indvar returns CouldNotCompute.

And that's correct. This "loop" has a i1 false for a branch condition, meaning
that scev won't analyze it. I'm not sure who's at fault here.


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