Right now, loops inside a Sum node are supposed to be fused if they start with same index. However, this only happens if they are adjacent. If a loop with a different index is placed between two fusable loops in the Sum, they are not fused. This is both inefficient and causes a crash (because the variables are redeclared).
Right now, loops inside a
Sum
node are supposed to be fused if they start with same index. However, this only happens if they are adjacent. If a loop with a different index is placed between two fusable loops in theSum
, they are not fused. This is both inefficient and causes a crash (because the variables are redeclared).Fused:
Not fused: