[all-commits] [llvm/llvm-project] c1b5b7: [flang][Lower] Emit exiting branches from within c...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Tue May 21 06:20:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1b5b7c19b76f8d153f7ae9350d217b74888ed93
      https://github.com/llvm/llvm-project/commit/c1b5b7c19b76f8d153f7ae9350d217b74888ed93
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-05-21 (Tue, 21 May 2024)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/test/Lower/branching-directive.f90
    A flang/test/Lower/unstructured-control-flow.f90

  Log Message:
  -----------
  [flang][Lower] Emit exiting branches from within constructs (#92455)

When lowering IfConstruct, CaseConstruct, and SelectTypeConstruct, emit
branches that exit the construct in each block that is still
unterminated after the FIR has been generated in it.

The same thing may be needed for SelectRankConstruct, once it's
supported.

This eliminates the need for inserting branches in `genFIR(Evaluation)`.

Follow-up to PR https://github.com/llvm/llvm-project/pull/91614.



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