Fixed a bug in specialize_branched_loops that was incorrectly counting free variables. By free variable in this case we mean a loop variable introduced by a For stmt. The fix was to explicitly track these variables in a scope and look up the free variables in that scope.
Fixed a bug in specialize_branched_loops that was incorrectly counting free variables. By free variable in this case we mean a loop variable introduced by a For stmt. The fix was to explicitly track these variables in a scope and look up the free variables in that scope.


Former-commit-id: 2b34db5db4304061a16e02c5cb71056b9630c8f0
Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide