[all-commits] [llvm/llvm-project] 57d517: [RISCV] Implement RISCVInsrInfo::getConstValDefine...

Alex Bradbury via All-commits all-commits at lists.llvm.org
Mon Jan 15 23:14:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57d517c2571d16837a018740c068cca89435ea65
      https://github.com/llvm/llvm-project/commit/57d517c2571d16837a018740c068cca89435ea65
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h
    M llvm/unittests/Target/RISCV/RISCVInstrInfoTest.cpp

  Log Message:
  -----------
  [RISCV] Implement RISCVInsrInfo::getConstValDefinedInReg (#77610)

This helper function handles common cases where we can determine a
constant value is being defined in a register. Although it looks like
codegen changes are possible due to this being called in
PeepholeOptimizer, my main motivation is to use this in
describeLoadedValue.




More information about the All-commits mailing list