[flang-commits] [flang] [flang] Lowering fortran structured do-while loops to `scf.while` (PR #177476)

Susan Tan ス-ザン タン via flang-commits flang-commits at lists.llvm.org
Fri Jan 23 08:12:47 PST 2026


================
@@ -1644,6 +1650,111 @@ class FirConverter : public Fortran::lower::AbstractConverter {
     genConditionalBranch(cond, trueTarget->block, falseTarget->block);
   }
 
+  bool doWhileHasEarlyExit(const Fortran::lower::pft::Evaluation &outerDoWhile,
----------------
SusanTan wrote:

great suggestion, will do that. thank you Jean!

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


More information about the flang-commits mailing list