We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e4cf93 commit e2cbdb7Copy full SHA for e2cbdb7
1 file changed
src/ExprInterpreter.cpp
@@ -404,6 +404,7 @@ void ExprInterpreter::visit(const Broadcast *op) {
404
405
void ExprInterpreter::visit(const Shuffle *op) {
406
std::vector<EvalValue> vecs;
407
+ vecs.reserve(op->vectors.size());
408
for (const Expr &e : op->vectors) {
409
vecs.push_back(eval(e));
410
}
@@ -489,6 +490,7 @@ void ExprInterpreter::visit(const VectorReduce *op) {
489
490
491
void ExprInterpreter::visit(const Call *op) {
492
std::vector<EvalValue> args;
493
+ args.reserve(op->args.size());
494
for (const Expr &e : op->args) {
495
args.push_back(eval(e));
496
0 commit comments