summaryrefslogtreecommitdiff
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-05 01:25:41 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-05 01:25:41 +0000
commit78dd7a580c7ad7234395d2c0207c98e751378cd7 (patch)
treeee0889bad9f63f69441be2721655c86b3017fc20 /include/llvm/Target
parent614dacc9102ed3bf3fe4c985b5bc12857a26bae2 (diff)
downloadllvm-78dd7a580c7ad7234395d2c0207c98e751378cd7.tar.gz
llvm-78dd7a580c7ad7234395d2c0207c98e751378cd7.tar.bz2
llvm-78dd7a580c7ad7234395d2c0207c98e751378cd7.tar.xz
Clean up some confusing language, and use more realistic examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index fb311d8508..0ba75e5d7c 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/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.