[all-commits] [llvm/llvm-project] 72d013: [mlir] OpenMP-to-LLVM: properly set outer alloca i...

ftynse via All-commits all-commits at lists.llvm.org
Mon May 10 01:05:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72d013dd73f4b59eb421d7dbbfd0b2bccbb6fc7b
      https://github.com/llvm/llvm-project/commit/72d013dd73f4b59eb421d7dbbfd0b2bccbb6fc7b
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir

  Log Message:
  -----------
  [mlir] OpenMP-to-LLVM: properly set outer alloca insertion point

Previously, the OpenMP to LLVM IR conversion was setting the alloca insertion
point to the same position as the main compuation when converting OpenMP
`parallel` operations. This is problematic if, for example, the `parallel`
operation is placed inside a loop and would keep allocating on stack on each
iteration leading to stack overflow.

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list