[PATCH] D65860: [Attributor] Add LoopInfo to InformationCache and improve willreturn deduction

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 11:47:06 PDT 2019


jdoerfert added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:1390
+static bool containsIrreducibleLoop(const Function *F, Attributor &A) {
+  static DenseMap<const Function *, bool> ContainsIrreducibleLoopCache;
+  if (!F || !F->hasExactDefinition())
----------------
No static variables as part of the logic please.


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

https://reviews.llvm.org/D65860





More information about the llvm-commits mailing list