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: unassignedb...@nondot.org
          Reporter: lebedev...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to