[LLVMbugs] [Bug 3539] New: TargetInstrInfo:: AnalyzeBranch can modify the MBB being analyzed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 10 12:51:35 PST 2009


           Summary: TargetInstrInfo::AnalyzeBranch can modify the MBB being
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: evan.cheng at apple.com
                CC: llvmbugs at cs.uiuc.edu

AnalyzeBranch may delete instructions in the MBB if they are after the last
unconditional branch.

This may invalidate iterators or client's data structure (e.g. liveintervals
maps). The current workaround is to only allow this when the caller explicitly
permits so. The only such client is branch folding. 

The current fix is to not allow AnalyzeBranch to delete instructions. Instead,
branch folding should perform this optimization.

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