[IndVars] Use emplace_back; NFC

llvm-svn: 258015
This commit is contained in:
Sanjoy Das 2016-01-17 18:12:48 +00:00
parent ce6555f0be
commit 7a8a705c9d
1 changed files with 3 additions and 4 deletions

View File

@ -669,8 +669,8 @@ void IndVarSimplify::rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) {
}
// Collect all the candidate PHINodes to be rewritten.
RewritePhiSet.push_back(
RewritePhi(PN, i, ExitVal, HighCost, LCSSASafePhiForRAUW));
RewritePhiSet.emplace_back(PN, i, ExitVal, HighCost,
LCSSASafePhiForRAUW);
}
}
}
@ -1355,8 +1355,7 @@ void WidenIV::pushNarrowIVUsers(Instruction *NarrowDef, Instruction *WideDef) {
if (!Widened.insert(NarrowUser).second)
continue;
NarrowIVUsers.push_back(
NarrowIVDefUse(NarrowDef, NarrowUser, WideDef, NeverNegative));
NarrowIVUsers.emplace_back(NarrowDef, NarrowUser, WideDef, NeverNegative);
}
}