aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-07 18:32:57 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-07 18:32:57 +0000
commit7a8f311ece7108e44ded601237091c23ef7782eb (patch)
tree065be3da36b2ea60e364b71f13e6a22b4c046ed0 /lib
parentdb59a9556da394279f8faeb10dcfca641223e5e0 (diff)
downloadexternal_llvm-7a8f311ece7108e44ded601237091c23ef7782eb.zip
external_llvm-7a8f311ece7108e44ded601237091c23ef7782eb.tar.gz
external_llvm-7a8f311ece7108e44ded601237091c23ef7782eb.tar.bz2
Fix a couple of typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineTraceMetrics.cpp2
-rw-r--r--lib/CodeGen/MachineTraceMetrics.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineTraceMetrics.cpp b/lib/CodeGen/MachineTraceMetrics.cpp
index 09b6e9c..67427dd 100644
--- a/lib/CodeGen/MachineTraceMetrics.cpp
+++ b/lib/CodeGen/MachineTraceMetrics.cpp
@@ -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);
diff --git a/lib/CodeGen/MachineTraceMetrics.h b/lib/CodeGen/MachineTraceMetrics.h
index 626b28b..4f39aca 100644
--- a/lib/CodeGen/MachineTraceMetrics.h
+++ b/lib/CodeGen/MachineTraceMetrics.h
@@ -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.