[all-commits] [llvm/llvm-project] 133e50: [RISCV][GISel] Directly emit X0 from getICMPOperan...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Oct 28 23:55:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 133e50db31681b3becc75438d09b792a7fc28177
      https://github.com/llvm/llvm-project/commit/133e50db31681b3becc75438d09b792a7fc28177
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-10-28 (Sat, 28 Oct 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
    M llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/select-rv32.mir
    M llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/select-rv64.mir

  Log Message:
  -----------
  [RISCV][GISel] Directly emit X0 from getICMPOperandsForBranch instead of using buildConstant+selectConstant.

This is simpler to implement and matches what SelectionDAG emits.

Also allows us to make getICMPOperandsForBranch a static function.




More information about the All-commits mailing list