[LoadCombine] Simplify code with a brace init. NFC.

llvm-svn: 277921
This commit is contained in:
Benjamin Kramer 2016-08-06 12:11:11 +00:00
parent 01d3a35aa3
commit a3d4def878
1 changed files with 1 additions and 4 deletions

View File

@ -44,9 +44,6 @@ struct PointerOffsetPair {
};
struct LoadPOPPair {
LoadPOPPair() = default;
LoadPOPPair(LoadInst *L, PointerOffsetPair P, unsigned O)
: Load(L), POP(P), InsertOrder(O) {}
LoadInst *Load;
PointerOffsetPair POP;
/// \brief The new load needs to be created before the first load in IR order.
@ -264,7 +261,7 @@ bool LoadCombine::runOnBasicBlock(BasicBlock &BB) {
auto POP = getPointerOffsetPair(*LI);
if (!POP.Pointer)
continue;
LoadMap[POP.Pointer].push_back(LoadPOPPair(LI, POP, Index++));
LoadMap[POP.Pointer].push_back({LI, std::move(POP), Index++});
AST.add(LI);
}
if (combineLoads(LoadMap))