[PATCH] D89953: [AArch64] Implement getIntrinsicInstrCost, handle min/max intrinsics.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 08:08:27 PDT 2020


fhahn added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:222
+  case Intrinsic::umax: {
+    static const auto ValidMinMaxTys = {MVT::v8i8, MVT::v16i8, MVT::v8i16,
+                                        MVT::v2i32, MVT::v4i32};
----------------
dmgreen wrote:
> fhahn wrote:
> > dmgreen wrote:
> > > v4i16?
> > Yeah I missed that one initially. Should be fixed now.
> Look like it would be worth making sure there are tests too.
Agreed, added tests for the remaining missing cases (v2i32, v4i16).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89953



More information about the llvm-commits mailing list