[all-commits] [llvm/llvm-project] 211fb9: [DAGCombiner] Don't emit select_cc from visitSINT_...

topperc via All-commits all-commits at lists.llvm.org
Sun Mar 1 10:52:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 211fb91f1067ecdf7c0b8a019bcf76554d813129
      https://github.com/llvm/llvm-project/commit/211fb91f1067ecdf7c0b8a019bcf76554d813129
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-03-01 (Sun, 01 Mar 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/cmovcmov.ll
    M llvm/test/CodeGen/X86/pr44749.ll

  Log Message:
  -----------
  [DAGCombiner] Don't emit select_cc from visitSINT_TO_FP/visitUINT_TO_FP. Use plain select instead.

Select_cc isn't used by all targets. X86 doesn't have optimizations
for it.

Since we already know the input to the sint_to_fp/uint_to_fp is
a setcc we can just emit a plain select using that setcc as the
condition. Other DAG combines can turn that into a select_cc on
targets that support it.

Differential Revision: https://reviews.llvm.org/D75415




More information about the All-commits mailing list