[PATCH] D101820: [AArch64][SVE] Extend svdup->insertelement instcombine pattern to support ...

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 11:14:15 PDT 2021


efriedma added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:392
+  // this DUP are other DUPs that overwrite every vector element except for
+  // one. If this condition is not true, bail out.
+  if (PTruePattern != AArch64SVEPredPattern::vl1) {
----------------
Instead of checking for this specific pattern, can we leverage simplifyDemandedVectorEltsIntrinsic?  I guess that doesn't currently work with scalable vectors, though...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101820



More information about the llvm-commits mailing list