[all-commits] [llvm/llvm-project] 72db3f: [RISCV] Allow tail memcmp expansion (#121460)

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Thu Jan 2 22:05:25 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72db3f989e499c8c5d585d3624cd563600cd2396
      https://github.com/llvm/llvm-project/commit/72db3f989e499c8c5d585d3624cd563600cd2396
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2025-01-03 (Fri, 03 Jan 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/CodeGen/RISCV/memcmp-optsize.ll
    M llvm/test/CodeGen/RISCV/memcmp.ll

  Log Message:
  -----------
  [RISCV] Allow tail memcmp expansion (#121460)

This optimization was introduced by #70469.

Like AArch64, we allow tail expansions for 3 on RV32 and 3/5/6
on RV64.

This can simplify the comparison and reduce the number of blocks.



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