[all-commits] [llvm/llvm-project] 9d8a7f: [LoongArch] Implement the convertSelectOfConstants...

Gong LingQin via All-commits all-commits at lists.llvm.org
Thu Feb 9 22:29:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d8a7f780c5da87a0f0e41b5e8978920b1e9947d
      https://github.com/llvm/llvm-project/commit/9d8a7f780c5da87a0f0e41b5e8978920b1e9947d
  Author: gonglingqin <gonglingqin at loongson.cn>
  Date:   2023-02-10 (Fri, 10 Feb 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    M llvm/test/CodeGen/LoongArch/select-const.ll

  Log Message:
  -----------
  [LoongArch] Implement the convertSelectOfConstantsToMath hook

Normally, the ISD::SELECT is lowered to maskeqz + masknez. This is
inefficient when operands are constants that can be computed easily.
To avoid that, override TargetLowering::convertSelectOfConstantsToMath.

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




More information about the All-commits mailing list