[llvm] r295607 - Remove redundant call to GluedNodes.back() [NFC]

Artyom Skrobov via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 19 08:56:19 PST 2017


Author: askrobov
Date: Sun Feb 19 10:56:18 2017
New Revision: 295607

URL: http://llvm.org/viewvc/llvm-project?rev=295607&view=rev
Log:
Remove redundant call to GluedNodes.back() [NFC]

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp?rev=295607&r1=295606&r2=295607&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp Sun Feb 19 10:56:18 2017
@@ -836,8 +836,7 @@ EmitSchedule(MachineBasicBlock::iterator
       GluedNodes.push_back(N);
     while (!GluedNodes.empty()) {
       SDNode *N = GluedNodes.back();
-      Emitter.EmitNode(GluedNodes.back(), SU->OrigNode != SU, SU->isCloned,
-                       VRBaseMap);
+      Emitter.EmitNode(N, SU->OrigNode != SU, SU->isCloned, VRBaseMap);
       // Remember the source order of the inserted instruction.
       if (HasDbg)
         ProcessSourceNode(N, DAG, Emitter, VRBaseMap, Orders, Seen);




More information about the llvm-commits mailing list