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

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 22 10:10:46 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/Target/X86/X86TargetTransformInfo.cpp:3800
+    Value *SplatV = nullptr;
+    if (Idx == 1 &&
+        (ST->hasAVX2() || ST->hasXOP() || all_of(Vals, [&SplatV](Value *V) {
----------------
XOP can memory fold from Idx == 0 as well.


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