[BOLT][NFC] Return instruction list from createInstrIncMemory
authorAmir Ayupov <aaupov@fb.com>
Mon, 6 Feb 2023 22:03:40 +0000 (14:03 -0800)
committerAmir Ayupov <aaupov@fb.com>
Mon, 13 Mar 2023 19:56:39 +0000 (12:56 -0700)
commit223ec28da44fe673c3318deffc27f08733bcd7d1
treedc1dc2471e22d4cb956c1451f96542cb0c5e82ea
parent67318df027ca2a652b0a568769d2ad1dc8fa488b
[BOLT][NFC] Return instruction list from createInstrIncMemory

Leverage move semantics for `std::vector`.

This also makes it consistent with `createInstrumentationSnippet`.

Reviewed By: Elvina

Differential Revision: https://reviews.llvm.org/D145465
bolt/include/bolt/Core/MCPlusBuilder.h
bolt/lib/Passes/Instrumentation.cpp
bolt/lib/Target/X86/X86MCPlusBuilder.cpp