Fix a couple of typos.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 7 Aug 2012 18:32:57 +0000 (18:32 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 7 Aug 2012 18:32:57 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161437 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineTraceMetrics.cpp
lib/CodeGen/MachineTraceMetrics.h

index 09b6e9c44f5e61fe2135649cfb2367bc2c86d1c2..67427dd1931a7f211e9a0abd236df47f97a3fd94 100644 (file)
@@ -929,7 +929,7 @@ computeInstrHeights(const MachineBasicBlock *MBB) {
     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);
index 626b28b32276dbc5a82aef96a1520f5008d2d731..4f39aca490c5dc7c3b4fe56b17849d02d9bd5ed5 100644 (file)
@@ -219,7 +219,7 @@ public:
       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.