[flang][openacc] Do not generate duplicate routine op (#68348)
commit1556ddf255ab2d04977722d9e9fc37b7e0c7139c
authorValentin Clement (バレンタイン クレメン) <clementval@gmail.com>
Fri, 6 Oct 2023 15:10:12 +0000 (6 08:10 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 15:10:12 +0000 (6 08:10 -0700)
tree3ee4828c5fd13807946d30810f902205383527b9
parentd579a1a24adc26794d9a720cea52f7bb8f37c683
[flang][openacc] Do not generate duplicate routine op (#68348)

This patch updates the lowering of OpenACC routine directive to avoid
creating duplicate acc.routine operations when all the clauses are
identical. If clauses differ an error is raised.
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-routine.f90