[llvm] r205723 - Use std::swap
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Apr 7 09:44:26 PDT 2014
Author: arsenm
Date: Mon Apr 7 11:44:26 2014
New Revision: 205723
URL: http://llvm.org/viewvc/llvm-project?rev=205723&view=rev
Log:
Use std::swap
Modified:
llvm/trunk/lib/Target/R600/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIISelLowering.cpp?rev=205723&r1=205722&r2=205723&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIISelLowering.cpp Mon Apr 7 11:44:26 2014
@@ -1281,9 +1281,7 @@ SDNode *SITargetLowering::foldOperands(M
fitsRegClass(DAG, Ops[1], OtherRegClass))) {
// Swap commutable operands
- SDValue Tmp = Ops[1];
- Ops[1] = Ops[0];
- Ops[0] = Tmp;
+ std::swap(Ops[0], Ops[1]);
Desc = DescRev;
DescRev = 0;
More information about the llvm-commits
mailing list