File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,7 @@ void CodeGen_GPU_C::visit(const Shuffle *op) {
161
161
162
162
std::vector<std::string> vecs;
163
163
for (const Expr &v : op->vectors ) {
164
- std::string expr = print_expr (v);
165
- internal_assert (!expr.empty ()) << " Expression did not serialize." ;
166
- vecs.push_back (std::move (expr));
164
+ vecs.push_back (print_expr (v));
167
165
}
168
166
169
167
std::string src = vecs[0 ];
@@ -190,8 +188,8 @@ void CodeGen_GPU_C::visit(const Shuffle *op) {
190
188
break ;
191
189
}
192
190
}
193
- internal_assert (lane_idx != -1 ) << " Shuffle lane index not found. " ;
194
- internal_assert (vector_idx < op->vectors .size ()) << " Shuffle vector index not found. " ;
191
+ internal_assert (lane_idx != -1 ) << " Shuffle lane index not found: i= " << i ;
192
+ internal_assert (vector_idx < op->vectors .size ()) << " Shuffle vector index not found: i= " << i << " , lane= " << lane_idx ;
195
193
rhs << vecs[vector_idx];
196
194
if (op->vectors [vector_idx].type ().lanes () > 1 ) {
197
195
switch (vector_declaration_style) {
You can’t perform that action at this time.
0 commit comments