[llvm] r296259 - No need to copy the variable [NFC]

Artyom Skrobov via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 25 09:18:10 PST 2017


Author: askrobov
Date: Sat Feb 25 11:18:09 2017
New Revision: 296259

URL: http://llvm.org/viewvc/llvm-project?rev=296259&view=rev
Log:
No need to copy the variable [NFC]

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=296259&r1=296258&r2=296259&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sat Feb 25 11:18:09 2017
@@ -1353,8 +1353,7 @@ void DAGCombiner::Run(CombineLevel AtLev
     else {
       assert(N->getValueType(0) == RV.getValueType() &&
              N->getNumValues() == 1 && "Type mismatch");
-      SDValue OpV = RV;
-      DAG.ReplaceAllUsesWith(N, &OpV);
+      DAG.ReplaceAllUsesWith(N, &RV);
     }
 
     // Push the new node and any users onto the worklist




More information about the llvm-commits mailing list