HomePhabricator

[OpenMP] Do not SPMDize generic regions with no parallel

Authored by jhuber6 on Sep 8 2021, 6:52 AM.

Description

[OpenMP] Do not SPMDize generic regions with no parallel

This patch changes SPMDization to not trigger for regions with no
parallelism. Otherwise, this will introduce unnecessary barriers that
will slow the single-threaded region down.

Reviewed By: jdoerfert

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