[all-commits] [llvm/llvm-project] 086450: [GISel] Convert zext nneg to sext if it is cheaper...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sat Jun 1 00:03:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0864501b97a70ce7d6f1741514fae08eef7c237e
      https://github.com/llvm/llvm-project/commit/0864501b97a70ce7d6f1741514fae08eef7c237e
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-06-01 (Sat, 01 Jun 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    M llvm/include/llvm/Target/GlobalISel/Combine.td
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/test/CodeGen/RISCV/GlobalISel/alu-roundtrip-rv64.ll
    A llvm/test/CodeGen/RISCV/GlobalISel/combine.mir

  Log Message:
  -----------
  [GISel] Convert zext nneg to sext if it is cheaper (#93856)

This patch converts `zext nneg` to `sext` on RISCV to use free sext.

---------

Co-authored-by: Thorsten Schütt <schuett at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list