[all-commits] [llvm/llvm-project] ab2348: [RISCV] Add sext.b/h and zext.b/h/w to RISCVInstrI...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jul 21 14:55:18 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h
    M llvm/test/CodeGen/RISCV/stack-folding.ll

  Log Message:
  -----------
  [RISCV] Add sext.b/h and zext.b/h/w to RISCVInstrInfo::foldMemoryOperandImpl.

We can always fold zext.b since it is just andi. The others require
Zba/Zbb.

Reviewed By: reames

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




More information about the All-commits mailing list