[all-commits] [llvm/llvm-project] 7b9702: [RISCV] Optimize SELECT_CC when the true value of...

ChunyuLiao via All-commits all-commits at lists.llvm.org
Mon Oct 17 18:24:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b970290c07f9d7fcbe36d00d3f3acc9ab7407cb
      https://github.com/llvm/llvm-project/commit/7b970290c07f9d7fcbe36d00d3f3acc9ab7407cb
  Author: LiaoChunyu <chunyu at iscas.ac.cn>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
    M llvm/test/CodeGen/RISCV/double-convert-strict.ll
    M llvm/test/CodeGen/RISCV/double-convert.ll
    M llvm/test/CodeGen/RISCV/float-convert-strict.ll
    M llvm/test/CodeGen/RISCV/float-convert.ll
    M llvm/test/CodeGen/RISCV/half-convert-strict.ll
    M llvm/test/CodeGen/RISCV/half-convert.ll
    M llvm/test/CodeGen/RISCV/rv32zbb.ll

  Log Message:
  -----------
  [RISCV] Optimize SELECT_CC when  the true value of select is Constant

(select (setcc lhs, rhs, CC), constant, falsev) -> (select (setcc lhs, rhs, InverseCC), falsev, constant)

This patch removes unnecessary copies

Reviewed By: craig.topper

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




More information about the All-commits mailing list