[PATCH] D126885: [SLP]Cost for a constant buildvector.

Valeriy Dmitriev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 14:02:59 PDT 2022


vdmitrie added a comment.

F23306372: icost.ll <https://reviews.llvm.org/F23306372>

Test case for collection.



================
Comment at: llvm/lib/Target/X86/X86TargetTransformInfo.cpp:3787
+  case Instruction::AShr:
+    if (Idx == 1)
+      return TTI::TCC_Free;
----------------
Note that it is free for splat shift value only.
https://godbolt.org/z/KMf6sW5n3


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126885



More information about the llvm-commits mailing list