[all-commits] [llvm/llvm-project] 85834d: [RISCV]Keep (select c, 0/-1, X) during PerformDAGC...

ChunyuLiao via All-commits all-commits at lists.llvm.org
Mon Dec 5 17:26:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85834d8685c12dea2cf054a5cf138395cb1f8d9f
      https://github.com/llvm/llvm-project/commit/85834d8685c12dea2cf054a5cf138395cb1f8d9f
  Author: ChunyuLiao <chunyu at iscas.ac.cn>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/select-binop-identity.ll

  Log Message:
  -----------
  [RISCV]Keep (select c, 0/-1, X) during PerformDAGCombine

D135833, lowerSelect: (select C, -1/0, X) -> or/and
Keep (select c, 0/-1, X), thus making better use of lowerSelect to eliminate branch instructions.

Reviewed By: craig.topper

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




More information about the All-commits mailing list