mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 15:51:40 +00:00
[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:
parent
c411749e6e
commit
1e20935fdc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user