[PATCH] D106561: [AArch64] Optimise min/max lowering in ISel

Irina Dobrescu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 26 04:56:06 PDT 2021


Rin added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:4781
   case ISD::SMIN:
-    return LowerToPredicatedOp(Op, DAG, AArch64ISD::SMIN_PRED,
-                               /*OverrideNEON=*/true);
+    return LowerMinMax(Op, DAG);
   case ISD::UMIN:
----------------
dmgreen wrote:
> These can use fallthroughs to the next case, if they all call LowerMinMax in the same way.
Good point, I'll change them


================
Comment at: llvm/test/Analysis/CostModel/AArch64/min-max.ll:1
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
 ; RUN: opt < %s -mtriple=aarch64--linux-gnu -cost-model -analyze | FileCheck %s --check-prefix=COST
----------------
david-arm wrote:
> dmgreen wrote:
> > I was updating this file the other day. I think if you rebase the changes may disappear.
> nit: It might be easier to review the patch if you first introduced a NFC change to update the tests using utils/update_analyze_test_checks.py?
Ah, fair, I'll rebase then


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106561



More information about the llvm-commits mailing list