[PATCH] D121109: [AArch64] Add cost model for llvm.get.active.lane.mask intrinsic

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 05:46:41 PST 2022


sdesmalen added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:234
+    // This should be a single instruction.
+    if (!TLI->shouldExpandGetActiveLaneMask(ResVT, ArgType))
+      return 1;
----------------
Can the default case (i.e. when `shouldExpandGetActiveLaneMask = true`) be added to BasicTTIImpl?
Then in the target's TTI, you only need to handle the case where the intrinsic is not expanded.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121109



More information about the llvm-commits mailing list