[llvm-branch-commits] [flang] [flang][OpenMP] Fold GetNumGeneratedNestsFrom into calculateLength, NFC (PR #185297)

Jack Styles via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 9 03:21:24 PDT 2026


================
@@ -820,7 +820,58 @@ std::optional<int64_t> LoopSequence::calculateLength() const {
   if (parser::Unwrap<parser::DoConstruct>(entry_->owner)) {
     return 1;
   }
-  return GetNumGeneratedNestsFrom(*entry_->owner, sumOfChildrenLengths());
----------------
Stylie777 wrote:

If we are folding the function here, let's remove it. Its not needed anymore.

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


More information about the llvm-branch-commits mailing list