[PATCH] D116696: [SCEVExpand] Do not create redundant 'or false' for pred expansion.

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 13:33:34 PST 2022


reames accepted this revision.
reames added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp:2590
+    else
+      Check = Builder.CreateOr(Check, NextCheck);
   }
----------------
If you wanted, there's also a CreateOr version which takes an arrayref of operands and does this expansion for you.  


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116696



More information about the llvm-commits mailing list