← Back to Pull requests

[Flang] Test for THREADPRIVATE variables in EQUIVALENCE statement #2082

Open
mjklemm opened this pull request with 73 lines diff across 2 files
View on GitHub
mjklemm mjklemm commented on Mar 15, 2026 20:48 UTC
Author

Adds smoke test to check if THREADPRIVATE variables in an EQUIVALENCE statement have THREADPRIVATE semantics. Needs https://github.com/llvm/llvm-project/pull/186696 to land before the test can successfully execute.

Diff: 73 lines (+73 / -0) across 2 files Reviewer: loopacino Review duration: 331595m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.37) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 73 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
88%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.258
Real PR Conversation Timeline
9 items
mjklemm mjklemm commented on Mar 23, 2026 11:05 UTC
Author

@dpalermo @ronlieb Upstream PR https://github.com/llvm/llvm-project/pull/186696/ has landed. This test can now go in.

mjklemm mjklemm commented on Apr 14, 2026 20:04 UTC
Author

@dpalermo @ronlieb This one should be good to go. The upstream PR has landed.

loopacino loopacino commented on code on Apr 21, 2026 18:36 UTC
Code Review
test/smoke-fort-dev/llvm-180493/equiv.f90:1
@@ -0,0 +1,54 @@
+program equiv
+    use omp_lib
+    implicit none
+    common/ba/ a,b,c
+    integer :: a,b,c
+    integer :: x,y,z
+
+    integer, parameter :: nthreads = 4
+    integer :: i

Should i be in private() for the sequential loop?

loopacino loopacino commented on code on Apr 21, 2026 18:38 UTC
Code Review
test/smoke-fort-dev/llvm-180493/equiv.f90:1

Is the dir name suppose to have the PR number (i.e., 186696) or is it some other ID?

loopacino loopacino commented on code on Apr 21, 2026 18:39 UTC
Code Review
test/smoke-fort-dev/llvm-180493/Makefile:1
@@ -0,0 +1,19 @@
+#NOOPT        = 1
+#NOOMP        = 1
+#OMP_FLAGS    = -DNO_OMP
+include ../../Makefile.defs
+
+TESTNAME     = equiv
+TESTSRC_MAIN = equiv.f90
+TESTSRC_ALL  = $(TESTSRC_MAIN)
+
+FLANG        = flang

FLANG        ?= flang

mjklemm mjklemm commented on code on Apr 24, 2026 08:56 UTC
Code Review
test/smoke-fort-dev/llvm-180493/equiv.f90:1
@@ -0,0 +1,54 @@
+program equiv
+    use omp_lib
+    implicit none
+    common/ba/ a,b,c
+    integer :: a,b,c
+    integer :: x,y,z
+
+    integer, parameter :: nthreads = 4
+    integer :: i

Good catch!

mjklemm mjklemm commented on code on Apr 24, 2026 09:02 UTC
Code Review
test/smoke-fort-dev/llvm-180493/Makefile:1
@@ -0,0 +1,19 @@
+#NOOPT        = 1
+#NOOMP        = 1
+#OMP_FLAGS    = -DNO_OMP
+include ../../Makefile.defs
+
+TESTNAME     = equiv
+TESTSRC_MAIN = equiv.f90
+TESTSRC_ALL  = $(TESTSRC_MAIN)
+
+FLANG        = flang

Fixed

mjklemm mjklemm commented on code on Apr 28, 2026 15:08 UTC
Code Review
test/smoke-fort-dev/llvm-180493/equiv.f90:1

That's the Github issue ID. llvm- is used as a prefix for these issues.

Reviewers
Assignees
mjklemm mjklemm
Labels
risk: low confidence: 88.6% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.2% (MEDIUM) · Higher = larger blast radius
37.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 88.6% · Lower = rushed or shallow review
88.6%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 4.2% · Safe to merge
4.2%
Repository