[PATCH] D122148: [SLP] Peek into loads when hitting the RecursionMaxDepth

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 03:23:17 PDT 2022


ABataev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:4121-4124
+                  return match(I, m_ZExt(m_OneUse(m_Load(m_Value()))));
+                }) ||
+         all_of(VL, [](const Value *I) {
+           return match(I, m_SExt(m_OneUse(m_Load(m_Value()))));
----------------
I would also checked that sext/zext have just one use too.


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

https://reviews.llvm.org/D122148



More information about the llvm-commits mailing list