@@ -9,11 +9,11 @@ struct LdivMatch{Ta, Tb, S <: Assignment, P <: AbstractString} <: AbstractMatche
99end
1010
1111"""
12- detect_ldiv_pattern(expr::Code.Let, state::Code.CSEState ) -> Vector{LdivMatch}
12+ detect_ldiv_pattern(expr::Code.Let, state) -> Vector{LdivMatch}
1313
1414Detect patterns of the form `result = A \\ B` where both A and B are arrays.
1515"""
16- function detect_ldiv_pattern (expr:: Code.Let , state:: Code.CSEState )
16+ function detect_ldiv_pattern (expr:: Code.Let , state)
1717 ldiv_candidates_idx = findall (expr. pairs) do x
1818 r = rhs (x)
1919 iscall (r) || return false
@@ -192,14 +192,14 @@ function ldiv_transformation(safe_matches, ::Val{false})
192192end
193193
194194"""
195- transform_to_ldiv_inplace(expr::Code.Let, match_data, state::Code.CSEState ) -> Code.Let
195+ transform_to_ldiv_inplace(expr::Code.Let, match_data, state) -> Code.Let
196196
197197Transform `result = A \\ B` to:
198198 result = ldiv!(A, B)
199199
200200This performs in-place linear solve, overwriting B with the result.
201201"""
202- function transform_to_ldiv_inplace (expr:: Code.Let , match_data:: AbstractVector , state:: Code.CSEState )
202+ function transform_to_ldiv_inplace (expr:: Code.Let , match_data:: AbstractVector , state)
203203 # Validate all matches
204204 safe_matches = filter (match_data) do match
205205 is_safe = is_safe_to_optimize_ldiv (match, expr)
@@ -217,7 +217,7 @@ function transform_to_ldiv_inplace(expr::Code.Let, match_data::AbstractVector, s
217217
218218 return Code. Let (new_pairs, expr. body, expr. let_block)
219219end
220- transform_to_ldiv_inplace (expr:: Code.Let , match_data:: Nothing , state:: Code.CSEState ) = expr
220+ transform_to_ldiv_inplace (expr:: Code.Let , match_data:: Nothing , state) = expr
221221
222222# Create the optimization rule
223223const LDIV_RULE = OptimizationRule (
0 commit comments