[llvm] r178319 - Revert r178166. According to Howard, this code is actually ok.

Dan Gohman dan433584 at gmail.com
Thu Mar 28 17:13:08 PDT 2013


Author: djg
Date: Thu Mar 28 19:13:08 2013
New Revision: 178319

URL: http://llvm.org/viewvc/llvm-project?rev=178319&view=rev
Log:
Revert r178166. According to Howard, this code is actually ok.

Modified:
    llvm/trunk/utils/TableGen/CodeGenSchedule.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenSchedule.cpp?rev=178319&r1=178318&r2=178319&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenSchedule.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenSchedule.cpp Thu Mar 28 19:13:08 2013
@@ -1105,9 +1105,7 @@ void PredTransitions::getIntersectingVar
       // Push another copy of the current transition for more variants.
       Variant.TransVecIdx = TransVec.size();
       IntersectingVariants.push_back(Variant);
-
-      PredTransition Trans = TransVec[TransIdx];
-      TransVec.push_back(Trans);
+      TransVec.push_back(TransVec[TransIdx]);
     }
   }
 }





More information about the llvm-commits mailing list