<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in do_loop_unstructured.f90</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>aa0e167f - [Flang] Lower Unstructured do loops</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/flang/test/Lower/do_loop_unstructured.f90#aa0e167f</link>
        <description>[Flang] Lower Unstructured do loopsThe FIR `do_loop` is designed as a structured operation with a singleblock inside it. Presence of unstructured constructs like jumps, exitsinside the loop will cause the loop to be marked as unstructured. Theseloops are lowered using the `control-flow` dialect branch operations.Fortran semantics do not allow the loop variable to be modified insidethe loop. To prevent accidental modification, the iteration of theloop is modeled by two variables, trip-count and loop-variable.-&gt; The trip-count and loop-variable are initialized in the pre-header.The trip-count is set as (end-start+step)/step where end, start andstep have the usual meanings. The loop-variable is initialized to start.-&gt; The header block contains a conditional branch instruction whichselects between branching to the body of the loop or the exit blockdepending on the value of the trip-count.-&gt; Inside the body, the trip-count is decremented and the loop-variableincremented by the step value. Finally it branches to the header of theloop.Part of the upstreaming effort to move LLVM Flang from fir-dev branch ofhttps://github.com/flang-compiler/f18-llvm-project to the LLVM Project.Reviewed By: awarzynskiDifferential Revision: https://reviews.llvm.org/D124837Co-authored-by: Val Donaldson &lt;vdonaldson@nvidia.com&gt;Co-authored-by: Eric Schweitz &lt;eschweitz@nvidia.com&gt;Co-authored-by: Jean Perier &lt;jperier@nvidia.com&gt;Co-authored-by: Peter Klausler &lt;pklausler@nvidia.com&gt;

            List of files:
            /llvm-project-15.0.7/flang/test/Lower/do_loop_unstructured.f90</description>
        <pubDate>Fri, 06 May 2022 09:09:01 +0000</pubDate>
        <dc:creator>Kiran Chandramohan &lt;kiran.chandramohan@arm.com&gt;</dc:creator>
    </item>
</channel>
</rss>
