[llvm-bugs] [Bug 24581] New: optnone function results in MachineBasicBlocks with duplicated predecessors
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 25 17:28:02 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24581
Bug ID: 24581
Summary: optnone function results in MachineBasicBlocks with
duplicated predecessors
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: matze at braunis.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The machine verifier enforces the property that no block is listed twice in the
successor or predecessor list. For a function with the optnone function this is
not always true after instruction selection. Example:
> cat test.ll
define void @bar() #0 {
entry:
br i1 undef, label %exit, label %exit
exit:
ret void
}
attributes #0 = { noinline optnone }
> llc -verify-machineinstrs test.ll
...
*** Bad machine code: MBB has duplicate entries in its successor list. ***
...
I'm not sure why the machine verifier enforces this property, without the
optnone attribute the codegenprepare appears to remove those pointless jumps
though I am not sure yet whether this is on purpose to avoid the verification
problems.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150826/afebd0c7/attachment.html>
More information about the llvm-bugs
mailing list