diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-06-28 19:10:37 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-06-28 19:10:37 +0000 |
| commit | 6cc775f905a850905f9f437d1f67b99ab3f821b1 (patch) | |
| tree | 9c4c91de40be70e7aa57d1b7702507d3328795b2 /llvm/lib/CodeGen/BranchFolding.cpp | |
| parent | 6f306a48592be29c0fdaff98cd9c47c3e6eb343e (diff) | |
| download | bcm5719-llvm-6cc775f905a850905f9f437d1f67b99ab3f821b1.tar.gz bcm5719-llvm-6cc775f905a850905f9f437d1f67b99ab3f821b1.zip | |
- Rename TargetInstrDesc, TargetOperandInfo to MCInstrDesc and MCOperandInfo and
sink them into MC layer.
- Added MCInstrInfo, which captures the tablegen generated static data. Chang
TargetInstrInfo so it's based off MCInstrInfo.
llvm-svn: 134021
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index d95f77e90aa..4df7b469294 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -421,10 +421,10 @@ static unsigned EstimateRuntime(MachineBasicBlock::iterator I, for (; I != E; ++I) { if (I->isDebugValue()) continue; - const TargetInstrDesc &TID = I->getDesc(); - if (TID.isCall()) + const MCInstrDesc &MCID = I->getDesc(); + if (MCID.isCall()) Time += 10; - else if (TID.mayLoad() || TID.mayStore()) + else if (MCID.mayLoad() || MCID.mayStore()) Time += 2; else ++Time; |

