[llvm] [LoopSafetyInfo] Store Loop and automatically compute (PR #221238)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 01:30:52 PDT 2026


================
@@ -121,16 +108,19 @@ class LLVM_ABI SimpleLoopSafetyInfo : public LoopSafetyInfo {
                                // may throw.
   bool HeaderMayThrow = false; // Same as previous, but specific to loop header
 
+  void computeLoopSafetyInfo();
+
 public:
+  SimpleLoopSafetyInfo(const Loop *L) : LoopSafetyInfo(L) {
----------------
antoniofrighetto wrote:

Would mark the two subclass constructors as explicit to avoid implicit conversion to their type.

https://github.com/llvm/llvm-project/pull/221238


More information about the llvm-commits mailing list