From 6ff7e6db89844f2f5febc9e6647945d7a4b9dee4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 27 Nov 2019 04:10:29 -0800 Subject: [PATCH] mem-cache: Remove a std::move clang says is unnecessary. It also says it prevents an optimization. Change-Id: I9c21dc1a0c53cf70cefd1400564de07d1e845a75 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23124 Reviewed-by: Daniel Carvalho Maintainer: Gabe Black Tested-by: kokoro --- src/mem/cache/compressors/cpack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/cache/compressors/cpack.cc b/src/mem/cache/compressors/cpack.cc index 5603b0bf6..5d27505c3 100644 --- a/src/mem/cache/compressors/cpack.cc +++ b/src/mem/cache/compressors/cpack.cc @@ -63,7 +63,7 @@ CPack::compress(const uint64_t* data, Cycles& comp_lat, Cycles& decomp_lat) decomp_lat = Cycles(blkSize/8); // Return compressed line - return std::move(comp_data); + return comp_data; } CPack* -- 2.30.2