[all-commits] [llvm/llvm-project] 5cce16: [Flang][OpenMP] Prevent allocas from being inserte...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Wed Jul 3 05:11:42 PDT 2024


  Branch: refs/heads/users/skatrak/composite-lower-02-wrapper-alloca
  Home:   https://github.com/llvm/llvm-project
  Commit: 5cce160a7ee0b673e6e108502b9be8771b730e3b
      https://github.com/llvm/llvm-project/commit/5cce160a7ee0b673e6e108502b9be8771b730e3b
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2024-07-03 (Wed, 03 Jul 2024)

  Changed paths:
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp

  Log Message:
  -----------
  [Flang][OpenMP] Prevent allocas from being inserted into loop wrappers

This patch updates the `FirOpBuilder::getAllocaBlock()` method to avoid
returning blocks which are part of a region owned by a loop wrapper operation.

This avoids introducing `fir.alloca` operations inside of loop wrappers, which
would cause verifier errors due to strict restrictions on their allowed
contents. These allocations will be created in the entry block of the first
non-loop wrapper parent region.



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