[mlir][sparse] Correcting the use of emplace_back
authorwren romano <2998727+wrengr@users.noreply.github.com>
Wed, 25 Aug 2021 01:29:05 +0000 (18:29 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Wed, 25 Aug 2021 01:32:13 +0000 (18:32 -0700)
commit90e0c657b7cb3e4dd87229e338061d3cc27f6977
treebfb520730b1f7aa72c12e1dc374dd66258211fbe
parentd5244fb16070068fc1dfae5804ab8ff86d25deb9
[mlir][sparse] Correcting the use of emplace_back

The emplace commands are variadic and should take all the constructor arguments directly, since they implicitly call the constructor themselves in order to avoid the cost of constructing and then moving/copying temporaries.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D108670
mlir/lib/ExecutionEngine/SparseUtils.cpp