diff options
author | jeanPerier <jperier@nvidia.com> | 2024-12-18 10:26:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 10:26:04 +0100 |
commit | 1d4453a6711394b368995c0f761015c1f6d27250 (patch) | |
tree | 653bb6297c584399457c9a6d5b5210e0fa8d90df /llvm/tools/llvm-cov/SourceCoverageViewText.cpp | |
parent | 13107cb09441dfeab24fcbcae9f4d3ba4cfc2703 (diff) | |
download | llvm-1d4453a6711394b368995c0f761015c1f6d27250.zip llvm-1d4453a6711394b368995c0f761015c1f6d27250.tar.gz llvm-1d4453a6711394b368995c0f761015c1f6d27250.tar.bz2 |
[flang][HLFIR] fix FORALL issue 120190 (#120236)
Fix #120190.
The hlfir.forall lowering code was not properly checking for forall
index reference in mask value computation before trying to hoist it: it
was only looking at the ops directly nested in the hlfir.forall_mask
region, but not the operation indirectly nested. This caused triggered
bogus hoisting in #120190 leading to undefined behavior (reference to
uinitialized data). The added regression test would die at compile time
with a dominance error.
Fix this by doing a deep walk of the region operation instead. Also
clean-up the region cloning to use without_terminator.
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
0 files changed, 0 insertions, 0 deletions