Further factored out common code in vectorize
Further factored out common code in vectorize

Former-commit-id: 27b2821e4382371cd4f686c5bd25400cd9194c4c
darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide