[llvm-bugs] [Bug 40974] New: [MIR] Simplify CFG: turn conditional jump into an unconditional one.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 6 02:06:45 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40974

            Bug ID: 40974
           Summary: [MIR] Simplify CFG: turn conditional jump into an
                    unconditional one.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 21566
  --> https://bugs.llvm.org/attachment.cgi?id=21566&action=edit
Input IR

Came up in https://reviews.llvm.org/D59001
If the target does not have CMOV, we will expand it to branch.

If CMOV was i16 and we promoted it to i32, then the
MIR/ASM ends up with one conditional branch and one unconditional branch.

BUT.
If CMOV was i16 and we did not promote it to i32, then the
MIR/ASM ends up with two conditional branches based on the same condition.

-- 
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/20190306/a4545d43/attachment.html>


More information about the llvm-bugs mailing list