Skip to content

Commit

Permalink
Vectorize loop broadcast cond, broken in many cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtulloch committed Aug 26, 2019
1 parent 8a42430 commit 1585533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pass/vectorize_loop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class Vectorizer : public IRMutator {
int lanes = std::max(std::max(
cond.type().lanes(),
t.type().lanes()), f.type().lanes());
return Select::make(cond, BroadcastTo(t, lanes), BroadcastTo(f, lanes));
return Select::make(BroadcastTo(cond, lanes), BroadcastTo(t, lanes), BroadcastTo(f, lanes));
}
}
Expr Mutate_(const Cast *op, const Expr& e) final {
Expand Down

0 comments on commit 1585533

Please sign in to comment.