[PATCH] D144199: [InstCombine] create and use a pass options container

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 17 00:12:39 PST 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:4662
 
   auto *LI = AM.getCachedResult<LoopAnalysis>(F);
+  if (!LI && Options.UseLoopInfo)
----------------
This should be initialized to nullptr. We should not use LoopInfo unless UseLoopInfo is set.


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

https://reviews.llvm.org/D144199



More information about the llvm-commits mailing list