[llvm-commits] [llvm] r161437 - in /llvm/trunk/lib/CodeGen: MachineTraceMetrics.cpp MachineTraceMetrics.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Aug 7 11:32:58 PDT 2012


Author: stoklund
Date: Tue Aug  7 13:32:57 2012
New Revision: 161437

URL: http://llvm.org/viewvc/llvm-project?rev=161437&view=rev
Log:
Fix a couple of typos.

Modified:
    llvm/trunk/lib/CodeGen/MachineTraceMetrics.cpp
    llvm/trunk/lib/CodeGen/MachineTraceMetrics.h

Modified: llvm/trunk/lib/CodeGen/MachineTraceMetrics.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineTraceMetrics.cpp?rev=161437&r1=161436&r2=161437&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineTraceMetrics.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineTraceMetrics.cpp Tue Aug  7 13:32:57 2012
@@ -929,7 +929,7 @@
     if (TBI.Succ) {
       for (MachineBasicBlock::const_iterator
            I = TBI.Succ->begin(), E = TBI.Succ->end();
-           I != E && !I->isPHI(); ++I) {
+           I != E && I->isPHI(); ++I) {
         const MachineInstr *PHI = I;
         Deps.clear();
         getPHIDeps(PHI, Deps, MBB, MTM.MRI);

Modified: llvm/trunk/lib/CodeGen/MachineTraceMetrics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineTraceMetrics.h?rev=161437&r1=161436&r2=161437&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineTraceMetrics.h (original)
+++ llvm/trunk/lib/CodeGen/MachineTraceMetrics.h Tue Aug  7 13:32:57 2012
@@ -219,7 +219,7 @@
       return TBI.InstrDepth + TBI.InstrHeight;
     }
 
-    /// Return the resource dpeth of the top/bottom of the trace center block.
+    /// Return the resource depth of the top/bottom of the trace center block.
     /// This is the number of cycles required to execute all instructions from
     /// the trace head to the trace center block. The resource depth only
     /// considers execution resources, it ignores data dependencies.





More information about the llvm-commits mailing list