[PATCH] D107254: [VectorUtils] Teach findScalarElement to return splat value.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 02:00:09 PDT 2021


sdesmalen added inline comments.


================
Comment at: llvm/lib/Analysis/VectorUtils.cpp:329
+    if (Value *Splat = getSplatValue(V))
+      if (EltNo < VTy->getElementCount().getKnownMinValue())
+        return Splat;
----------------
@spatel, I wasn't entirely sure if similar arguments apply as mentioned here: https://reviews.llvm.org/D104867#2840537


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107254



More information about the llvm-commits mailing list