You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable FMul associativity and factoring rules that cause egraph explosion
FMul associativity and FP factoring rules interact to cause exponential
egraph growth on shaders with many shared multiply chains (e.g. sky-shader
with 1,264 FMul nodes). FMul associativity alone creates 305K+ matches via
Catalan-number re-parenthesization across shared e-classes; combined with
factoring (304K matches), tuples explode from 2,875 to 916K in one
iteration, causing OOM/SIGKILL.
Constant chain merging (FMul(FMul(x, const_a), const_b) → FMul(x, a*b))
is handled by dedicated rules and does not need general associativity.
0 commit comments