[PATCH] D86243: [InstCombine] canonicalize 'not' ops before logical shifts

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 13:57:23 PDT 2020


lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:3279
+      }
+      // (X >> C) ^ RHSC --> ~X >> C
+      if (match(Op0, m_OneUse(m_LShr(m_Value(X), m_APInt(C)))) &&
----------------
`// (X l>> C) ^ RHSC --> ~X l>> C`


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

https://reviews.llvm.org/D86243



More information about the llvm-commits mailing list