We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d0580e commit 7e38017Copy full SHA for 7e38017
src/CodeGen_D3D12Compute_Dev.cpp
@@ -1058,6 +1058,14 @@ void CodeGen_D3D12Compute_Dev::CodeGen_D3D12Compute_C::visit(const Store *op) {
1058
}
1059
1060
void CodeGen_D3D12Compute_Dev::CodeGen_D3D12Compute_C::visit(const Select *op) {
1061
+ if (op->type.is_vector()) {
1062
+ // A vector of bool was recursively introduced while
1063
+ // performing codegen. Eliminate it.
1064
+ Expr equiv = eliminate_bool_vectors(op);
1065
+ equiv.accept(this);
1066
+ return;
1067
+ }
1068
+
1069
ostringstream rhs;
1070
string true_val = print_expr(op->true_value);
1071
string false_val = print_expr(op->false_value);
0 commit comments