Preserve AxisInfo hints on inlined jit call results #11150
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 266 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11150"
general
weight: 0.35
39ali
Fixes #8592.
tl.multiple_of,tl.max_contiguous, andtl.max_constancyattach theirhint attributes (
tt.divisibility,tt.contiguity,tt.constancy) to theoperation that defines the hinted value. When that value is returned from a
@triton.jithelper function, the defining operation is thett.call— andthe inliner erases the call without transferring the attributes to the
inlined value. The hints were silently dropped, so
AxisInfocould not seethem and the backend missed optimizations such as vectorized loads. Factoring
pointer arithmetic into a helper function silently degraded generated code
even though the kernel author had provided the hints.
Implement
handleResultonTritonInlinerInterfaceso that, when theinliner replaces a call result with the corresponding inlined value, the
AxisInfo hint attributes on the call are copied onto the inlined value's
defining op. This makes hints on jit-call results survive inlining, matching
the behavior of writing the same code without a helper function.
The added end-to-end test applies all three hints to a value returned from a
jitted helper and asserts they are present on the inlined
tt.addptrinTTIR; it fails without this change.
New contributor declaration
rules.
pre-commit run --from-ref origin/main --to-ref HEAD.- [x] I have added tests.
-
/testforlittests-
/unittestfor C++ tests-
/python/testfor end-to-end tests- [ ] This PR does not need a test because
FILL THIS IN.- [] I have not added any
littests.- [x] The
littests I have added follow these best practices,including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)