[all-commits] [llvm/llvm-project] fc9730: [RISCV]Optimize (riscvisd::select_cc x, 0, ne, x, 1)

Liao Chunyu via All-commits all-commits at lists.llvm.org
Wed Mar 15 19:56:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc9730376c213bd3bf3f5ff8251f1ba1f4cbfb31
      https://github.com/llvm/llvm-project/commit/fc9730376c213bd3bf3f5ff8251f1ba1f4cbfb31
  Author: LiaoChunyu <chunyu at iscas.ac.cn>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    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/forced-atomics.ll
    M llvm/test/CodeGen/RISCV/half-convert-strict.ll
    M llvm/test/CodeGen/RISCV/half-convert.ll
    M llvm/test/CodeGen/RISCV/min-max.ll

  Log Message:
  -----------
  [RISCV]Optimize (riscvisd::select_cc x, 0, ne, x, 1)

This patch reduces the number of unpredictable branches.

Reviewed By: craig.topper

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




More information about the All-commits mailing list