[all-commits] [llvm/llvm-project] 6b92a3: [flang][OpenMP] Detect BLOCK construct through loo...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Fri Jul 25 06:42:44 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6b92a3bc21cdcdeb161a06524a9860551831c67e
https://github.com/llvm/llvm-project/commit/6b92a3bc21cdcdeb161a06524a9860551831c67e
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2025-07-25 (Fri, 25 Jul 2025)
Changed paths:
M flang/lib/Parser/openmp-parsers.cpp
Log Message:
-----------
[flang][OpenMP] Detect BLOCK construct through lookahead (#150617)
Avoid parsing the entire ExecutionPartConstruct in either the strictly-
or the loosely-structured block parser only to discard it when it's not
BLOCK (or is BLOCK) respectively. Doing so was not incorrct, but in
pathological cases (like Fujitsu 0981_0034) the recursive parsing can
take a very long time.
Instead, detect the presence of BLOCK first (via a simple lookahead),
and fail immediately if necessary.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list