[all-commits] [llvm/llvm-project] 88b807: [AArch64] Combine SELECT_CC patterns that match sm...

Cameron McInally via All-commits all-commits at lists.llvm.org
Fri Apr 14 09:51:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88b80760bce47288bb639a61869cc2eab569333a
      https://github.com/llvm/llvm-project/commit/88b80760bce47288bb639a61869cc2eab569333a
  Author: Cameron McInally <cmcinally at nvidia.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/fpclamptosat.ll
    M llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
    A llvm/test/CodeGen/AArch64/min-max-combine.ll

  Log Message:
  -----------
  [AArch64] Combine SELECT_CC patterns that match smin(a,0) and smax(a,0)

With a previous patch to canonicalize SPF to min/max intrinsics (a266af721153),
we saw a performance regression on the AArch64 backend.

This patch recovers from the SPF canonicalization by combining smin(a,0) and
smax(a,0) SELECT_CC patterns during AArch64ISelLowering.

GitHub Issue: #61767

Reviewed By: dmgreen

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




More information about the All-commits mailing list