http://llvm.org/bugs/show_bug.cgi?id=3539
Summary: TargetInstrInfo::AnalyzeBranch can modify the MBB being
analyzed
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs