[all-commits] [llvm/llvm-project] 2e7415: [RISCV]Preserve (and X, 0xffff) in targetShrinkDem...

ChunyuLiao via All-commits all-commits at lists.llvm.org
Sun Sep 18 23:19:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e74157ad47b18959ac03e0e5000cd0a15fe76e0
      https://github.com/llvm/llvm-project/commit/2e74157ad47b18959ac03e0e5000cd0a15fe76e0
  Author: LiaoChunyu <chunyu at iscas.ac.cn>
  Date:   2022-09-19 (Mon, 19 Sep 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rv64i-demanded-bits.ll

  Log Message:
  -----------
  [RISCV]Preserve (and X, 0xffff) in targetShrinkDemandedConstant

shrinkdemandedconstant does some optimizations, but is not very friendly to riscv, targetShrinkDemandedConstant to limit the damage.

Reviewed By: craig.topper

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




More information about the All-commits mailing list