[all-commits] [llvm/llvm-project] f31704: [OpenMPIRBuilder] Put the barrier in the exit bloc...

ftynse via All-commits all-commits at lists.llvm.org
Wed Dec 9 02:33:26 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f31704f8ae32a24147fac686f4e922c5c762cfe0
      https://github.com/llvm/llvm-project/commit/f31704f8ae32a24147fac686f4e922c5c762cfe0
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-12-09 (Wed, 09 Dec 2020)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

  Log Message:
  -----------
  [OpenMPIRBuilder] Put the barrier in the exit block in createWorkshapeLoop

The original code was inserting the barrier at the location given by the
caller. Make sure it is always inserted at the end of the loop exit block
instead.

Reviewed By: Meinersbur

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




More information about the All-commits mailing list