[PATCH] D32433: Compute safety information in a much finer granularity.

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 09:09:45 PDT 2017


hfinkel accepted this revision.
hfinkel added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: include/llvm/Transforms/Utils/LoopUtils.h:49
 struct LoopSafetyInfo {
-  bool MayThrow = false;       // The current loop contains an instruction which
-                               // may throw.
-  bool HeaderMayThrow = false; // Same as previous, but specific to loop header
+  // The early exits in the loop, excluding loop exits.
+  SmallVector<Instruction *, 4> EarlyExits;
----------------
The comment here should explain that these are calls that might throw, etc.


https://reviews.llvm.org/D32433





More information about the llvm-commits mailing list