[PATCH] D147404: [DAGCombiner] Fold avg(x, x) --> x

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 05:02:03 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/avg.ll:2
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
 ; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s
 
----------------
Maybe just add coverage to https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/AArch64/hadd-combine.ll where the rest of the combines are already for ? AArch64 uses the term 'hadd' for halving-add averages AVGFLOORS/AVGFLOORU/AVGCEILS/AVGCEILU.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147404/new/

https://reviews.llvm.org/D147404



More information about the llvm-commits mailing list