[PATCH] D99884: [LV] Logical and/or select costs

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 5 18:29:06 PDT 2021


aqjune added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7445
+    if (!ScalarCond && (match(I, m_LogicalAnd(m_Value(Op0), m_Value(Op1))) ||
+                        match(I, m_LogicalOr(m_Value(Op0), m_Value(Op1))))) {
+      // select x, y, false --> x & y
----------------
If the select is loop invariant, it is still considered expensive - is there a reason why it is so?


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

https://reviews.llvm.org/D99884



More information about the llvm-commits mailing list