[all-commits] [llvm/llvm-project] a71a0d: [OpenMP][MLIR] Fix for nested parallel regions

kiranchandramohan via All-commits all-commits at lists.llvm.org
Mon Oct 19 00:50:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a71a0d6d219a8d460e6aadadc47dbb04955f1375
      https://github.com/llvm/llvm-project/commit/a71a0d6d219a8d460e6aadadc47dbb04955f1375
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

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

  Log Message:
  -----------
  [OpenMP][MLIR] Fix for nested parallel regions

Usage of nested parallel regions were not working correctly and leading
to assertion failures. Fix contains the following changes,
1) Don't set the insertion point in the body callback.
2) Save the continuation IP in a stack and set the branch to
continuationIP at the terminator.

Reviewed By: SouraVX, jdoerfert, ftynse

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




More information about the All-commits mailing list