[all-commits] [llvm/llvm-project] 784a2c: [RISCV] Rewrite RISCVCodeGenPrepare using zext nne...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Oct 30 16:35:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 784a2cd561acf3cf532cf182221be0826b0ec6a1
      https://github.com/llvm/llvm-project/commit/784a2cd561acf3cf532cf182221be0826b0ec6a1
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
    M llvm/test/CodeGen/RISCV/riscv-codegenprepare.ll

  Log Message:
  -----------
  [RISCV] Rewrite RISCVCodeGenPrepare using zext nneg [nfc-ish] (#70739)

This stacks on #70725. Once we have lowering for zext nneg, we can
rewrite all of the existing RISCVCodeGenPrepare login in terms of zext
nneg instead of sext. The change isn't NFC from the perspective of the
individual pass, but should be from the perspective of codegen as a
whole.

As noted in the TODO, one piece can be moved to instcombine, but I'll
leave that to a separate commit.




More information about the All-commits mailing list