[all-commits] [llvm/llvm-project] db875f: [RISCV] Optimize seteq/setne pattern expansions fo...

wweiandrew via All-commits all-commits at lists.llvm.org
Tue Feb 11 06:46:13 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: db875f66554455f4957881d373987472b3071f65
      https://github.com/llvm/llvm-project/commit/db875f66554455f4957881d373987472b3071f65
  Author: Andrew Wei <weiwei64 at huawei.com>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.td
    M llvm/test/CodeGen/RISCV/i32-icmp.ll
    M llvm/test/CodeGen/RISCV/setcc-logic.ll

  Log Message:
  -----------
  [RISCV] Optimize seteq/setne pattern expansions for better code size

ADDI(C.ADDI) may achieve better code size than XORI, since XORI has no C extension.
This patch transforms two patterns and gets almost equivalent results.

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




More information about the All-commits mailing list