Lower one-argument atan, copysign, muladd and float === #327
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.36) × (1 − Review Confidence (0.64)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 198 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
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.317
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #327"
general
weight: 0.35
maleadt
Several common scalar functions fail to compile on
mainwhen broadcast over a tile:| Function | Error |
|---|---|
|
muladd(any float type) |muladd_float … has no Tile IR equivalent||
copysign|copysign_float … has no Tile IR equivalent||
atan(x)| the same, since Base's implementation callscopysign||
isinf| tileiras:'cuda_tile.cmpi' op operand #0 must be tile of i1 or i8 or i16 or i32 or i64 values, but got '!cuda_tile.tile<256xf32>'|Changes:
muladd_floatlowers to Tile IR'sfma.muladdallows either a fused or an unfused computation, and Tile IR has a native fma.copysigncombines the magnitude bits of one operand with the sign bit of the other, as Tile IR has no copysign.atan(x)maps toatan2(x, 1), as the two-argument form already does.===was lowered toIntrinsics.cmpifor any operand type, so on floats it emitted acmpion float tiles. Base definesisinf(x::IEEEFloat)asabs(x) === oftype(x, Inf), soisinfhit this.===now lowers to a newIntrinsics.egal, which bitcasts float operands to unsigned integers of the same width (Base.uinttype) and then emitscmpi. This keeps==='s bitwise meaning (-0.0 !== 0.0,NaN === NaN), andIntrinsics.cmpistays integer-only, like Tile IR'scmpi. Integer operands emit the samecmpias before.Tests: device tests compare each function against the CPU, including
isinfon±Inf,NaNandfloatmax, andmuladdon Float64 values. A codegen test checks that float===emitsbitcastfollowed bycmpi.Assisted by: Opus 5.5