diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-05 01:25:41 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-04-05 01:25:41 +0000 |
| commit | 45a115723316cc2b5ab8e612b47baec8d2e9440a (patch) | |
| tree | 710c31faa2a34f162fd010f62e65bcbdea8a67fa /llvm | |
| parent | 1c627543f18df53ccab437a372c362aadadc2779 (diff) | |
| download | bcm5719-llvm-45a115723316cc2b5ab8e612b47baec8d2e9440a.tar.gz bcm5719-llvm-45a115723316cc2b5ab8e612b47baec8d2e9440a.zip | |
Clean up some confusing language, and use more realistic examples.
llvm-svn: 178828
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Target/TargetInstrInfo.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h index fb311d85085..0ba75e5d7ca 100644 --- a/llvm/include/llvm/Target/TargetInstrInfo.h +++ b/llvm/include/llvm/Target/TargetInstrInfo.h @@ -364,11 +364,10 @@ public: /// condition code in Cond. /// /// When successful, also return the latency in cycles from TrueReg, - /// FalseReg, and Cond to the destination register. The Cond latency should - /// compensate for a conditional branch being removed. For example, if a - /// conditional branch has a 3 cycle latency from the condition code read, - /// and a cmov instruction has a 2 cycle latency from the condition code - /// read, CondCycles should be returned as -1. + /// FalseReg, and Cond to the destination register. In most cases, a select + /// instruction will be 1 cycle, so CondCycles = TrueCycles = FalseCycles = 1 + /// + /// Some x86 implementations have 2-cycle cmov instructions. /// /// @param MBB Block where select instruction would be inserted. /// @param Cond Condition returned by AnalyzeBranch. |

