[all-commits] [llvm/llvm-project] 11fb1a: [flang] Upstream the lowering of the while loop

Diana via All-commits all-commits at lists.llvm.org
Tue May 31 00:27:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11fb1aa5a40885188b014b3ccd326cc92e4a3b9e
      https://github.com/llvm/llvm-project/commit/11fb1aa5a40885188b014b3ccd326cc92e4a3b9e
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2022-05-31 (Tue, 31 May 2022)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    A flang/test/Lower/mixed_loops.f90
    A flang/test/Lower/while_loop.f90

  Log Message:
  -----------
  [flang] Upstream the lowering of the while loop

Upstream the code for handling while loops from the fir-dev branch at
https://github.com/flang-compiler/f18-llvm-project/tree/fir-dev/

Also add tests.

The while loop is lowered to a header block that checks the loop
condition and branches either to the exit block or to the body of the
loop. The body of the loop will unconditionally branch back to the
header.

Differential Revision: https://reviews.llvm.org/D126636

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: V Donaldson <vdonaldson at nvidia.com>




More information about the All-commits mailing list