[PATCH] D97578: [instcombine] Collapse trivial or/and recurrences

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 12:37:00 PST 2021


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:1991
+  // An and recurrence w/loop invariant step is equivelent to and start, step
+  if (SQ.DT) {
+    PHINode *PN = nullptr;
----------------
DT is required in InstCombine. You should also be able to use DT directly without going through SimplifyQuery.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97578



More information about the llvm-commits mailing list