[PATCH] D45150: Less conservative LoopSafetyInfo for headers

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 25 04:37:16 PDT 2018


xbolva00 added inline comments.


================
Comment at: llvm/lib/Analysis/MustExecute.cpp:278
+    // Limit search to avoid quadratic complexity.
+    if (++Steps > 66)
+      return false;
----------------
Maybe introduce constant like "unsigned XZThreshoild = 66" with comment why 66 instead of a magic number?


Repository:
  rL LLVM

https://reviews.llvm.org/D45150





More information about the llvm-commits mailing list