[all-commits] [llvm/llvm-project] f04ae4: [RISCV] Add more test cases for select with (setge...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Jul 25 11:57:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f04ae43752a014fde8d6db6dc248044b0d02976a
      https://github.com/llvm/llvm-project/commit/f04ae43752a014fde8d6db6dc248044b0d02976a
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M llvm/test/CodeGen/RISCV/select-cc.ll

  Log Message:
  -----------
  [RISCV] Add more test cases for select with (setge X, C) condition.

InstCombine and SelectionDAG will tend to canonicalize these conditions
to (setgt X, C-1). C-1 might be more costly to materialize than C would
have been.




More information about the All-commits mailing list