[all-commits] [llvm/llvm-project] 5fe280: [PowerPC] Don't assert on SELECT_CC with i1 type

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Thu Apr 9 17:28:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fe2809447398dd53ef6179e8c551356600296fc
      https://github.com/llvm/llvm-project/commit/5fe2809447398dd53ef6179e8c551356600296fc
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    A llvm/test/CodeGen/PowerPC/pr45448.ll

  Log Message:
  -----------
  [PowerPC] Don't assert on SELECT_CC with i1 type

When we try to select a SELECT_CC on Power9, we check if it can be matched to a
SETB instruction. In that function, we assert that the output type is i32/i64.
This is unnecessary as it is perfectly reasonable to have an i1 SELECT_CC.
Change that from an assert to an early exit condition.
Fixes: https://bugs.llvm.org/show_bug.cgi?id=45448




More information about the All-commits mailing list