[LLVMbugs] [Bug 2027] New: -find-bugs forgets pass order when it comes time to reduce

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 13 19:05:23 PST 2008


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

           Summary: -find-bugs forgets pass order when it comes time to
                    reduce
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bugpoint
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1400)
 --> (http://llvm.org/bugs/attachment.cgi?id=1400)
proposed fix

bugpoint -find-bugs works by reordering the sequence of passes randomly and
optimizing and executing the result. Once it finds a failure (optz'n crash or
miscompile) it then starts to reduce it.

Unfortunately, what it reduces is the original pass list that the user passed
in, not the shuffled version that actually failed.

This patch modifies bugpoint to remember its ordering. I'm not sure it's the
best fix. Could we remove TempPass entirely and just modify PassesToRun in
place? Why doesn't the code already do that?


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