[IndVars] Use emplace_back; NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjoy Das 2016-01-17 18:12:48 +00:00
parent c411749e6e
commit 1e20935fdc

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);
}
}