[all-commits] [llvm/llvm-project] 4708a0: [RISCV] Use gorciw for i32 orc.b intrinsic when Zb...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Apr 4 17:19:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4708a05da03038271a1a2c1cbdfe78aebfaa7afc
      https://github.com/llvm/llvm-project/commit/4708a05da03038271a1a2c1cbdfe78aebfaa7afc
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-04-04 (Sun, 04 Apr 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rv64zbb-intrinsic.ll

  Log Message:
  -----------
  [RISCV] Use gorciw for i32 orc.b intrinsic when Zbp is enabled.

The W version of orc.b does not exist in Zbp so we need to use
gorci encoding. If we have Zbp, we can use gorciw which can avoid a
sext.w in some cases.




More information about the All-commits mailing list