[PATCH] D107793: [InstSimplify] Eliminate vector reverse of a splat vector

Usman Nadeem via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 10 11:29:29 PDT 2021


mnadeem added inline comments.


================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:5461
+    // experimental.vector.reverse(splat(X)) -> splat(X)
+    if (isSplatValue(Op0))
+      return Op0;
----------------
I'm planning to add ptrue(31) to this function in another patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107793



More information about the llvm-commits mailing list