[llvm] r258015 - [IndVars] Use emplace_back; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 17 10:12:48 PST 2016
Author: sanjoy
Date: Sun Jan 17 12:12:48 2016
New Revision: 258015
URL: http://llvm.org/viewvc/llvm-project?rev=258015&view=rev
Log:
[IndVars] Use emplace_back; NFC
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=258015&r1=258014&r2=258015&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Sun Jan 17 12:12:48 2016
@@ -669,8 +669,8 @@ void IndVarSimplify::rewriteLoopExitValu
}
// 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(Instruct
if (!Widened.insert(NarrowUser).second)
continue;
- NarrowIVUsers.push_back(
- NarrowIVDefUse(NarrowDef, NarrowUser, WideDef, NeverNegative));
+ NarrowIVUsers.emplace_back(NarrowDef, NarrowUser, WideDef, NeverNegative);
}
}
More information about the llvm-commits
mailing list