[all-commits] [llvm/llvm-project] 11576e: [flang] Delete a trailing CYCLE that is the last s...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Tue Sep 15 03:03:58 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 11576edbc8ab574ceacd9a624c08f730a5a7676b
https://github.com/llvm/llvm-project/commit/11576edbc8ab574ceacd9a624c08f730a5a7676b
Author: Kareem Ergawy <kergawy at nvidia.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M flang/lib/Lower/PFTBuilder.cpp
A flang/test/Lower/OpenMP/trailing-cycle.f90
A flang/test/Lower/trailing-cycle.f90
Log Message:
-----------
[flang] Delete a trailing CYCLE that is the last statement of its DO (#223399)
A CycleStmt at the end of the body of its own DoConstruct is a no-op:
branching to the EndDoStmt and falling through to it are the same thing.
Branch analysis nonetheless marks the DoConstruct unstructured, which
costs the structured form of the loop and the induction variable
semantics that later passes rely on.
Delete such a CycleStmt in the PFT. The statement must be unlabeled, so
that it is not itself a branch target, and it must name either no
construct or this one.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list