This is an archive of the discontinued LLVM Phabricator instance.

[Flang][openmp][openacc] Extend CheckNoBranching to handle branching provided by LabelEnforce.
ClosedPublic

Authored by sameeranjoshi on Dec 17 2020, 1:26 AM.

Details

Summary

CheckNoBranching is currently handling only illegal branching out for constructs
with Parser::Name in them.
Extend the same for handling illegal branching out caused by Parser::Label based statements.
This patch could possibly solve one of the issues(typically branching out) mentioned in D92735.

Diff Detail

Event Timeline

sameeranjoshi created this revision.Dec 17 2020, 1:26 AM
sameeranjoshi requested review of this revision.Dec 17 2020, 1:26 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: sstefan1. · View Herald Transcript
clementval added inline comments.Dec 22 2020, 8:34 AM
flang/lib/Semantics/check-directive-structure.h
45

Braces should be removed for simple if

This revision is now accepted and ready to land.Jan 11 2021, 2:50 PM
sameeranjoshi marked an inline comment as done.Jan 12 2021, 10:11 AM
sameeranjoshi added inline comments.
flang/lib/Semantics/check-directive-structure.h
45
klausler added inline comments.
flang/lib/Semantics/check-directive-structure.h
45

Please conform to the style used in the Fortran front-end; we always use braces for safety and future maintainability.

clementval added inline comments.Jan 12 2021, 11:20 AM
flang/lib/Semantics/check-directive-structure.h
45

My bad :(

awarzynski added a subscriber: awarzynski.EditedJan 14 2021, 6:09 AM

Hi @sameeranjoshi , thank you for working on this!

Sadly with this patch one of our upstream builders has started failing: http://lab.llvm.org:8011/#/builders/33/builds/1866. More specifically,Semantics/omp-parallell01.f90 is failing.

All other builders are fine, which makes this weird. The only unique thing about the failing builder (flang-aarch64-ubuntu-clang) is that it uses clang-10. Could you take a look?

Edit: @kiranchandramohan just pointed out to me offline that this is probably fixed here: https://reviews.llvm.org/D94618.

Hi @sameeranjoshi , thank you for working on this!

Sadly with this patch one of our upstream builders has started failing: http://lab.llvm.org:8011/#/builders/33/builds/1866. More specifically,Semantics/omp-parallell01.f90 is failing.

All other builders are fine, which makes this weird. The only unique thing about the failing builder (flang-aarch64-ubuntu-clang) is that it uses clang-10. Could you take a look?

Edit: @kiranchandramohan just pointed out to me offline that this is probably fixed here: https://reviews.llvm.org/D94618.

Thanks for reporting and reducing it to the exact problem.