diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-08-30 13:16:25 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-08-30 13:16:25 +0000 |
| commit | 7e5af84cae92b4621ec90f7190d675835758b2df (patch) | |
| tree | f5d932c13d6f2c174ae686e3df9e11975e21b927 /llvm | |
| parent | f3387836d0c149e6d101a18514760a2c599a192b (diff) | |
| download | bcm5719-llvm-7e5af84cae92b4621ec90f7190d675835758b2df.tar.gz bcm5719-llvm-7e5af84cae92b4621ec90f7190d675835758b2df.zip | |
fix typos; NFC
llvm-svn: 312119
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/X86CmovConversion.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/llvm/lib/Target/X86/X86CmovConversion.cpp b/llvm/lib/Target/X86/X86CmovConversion.cpp index c2e37b8f7f3..f84edaeb4ab 100644 --- a/llvm/lib/Target/X86/X86CmovConversion.cpp +++ b/llvm/lib/Target/X86/X86CmovConversion.cpp @@ -7,28 +7,28 @@ // //===----------------------------------------------------------------------===// /// \file -/// This file implements a pass that converts X86 cmov instructions into branch -/// when profitable. This pass is conservative, i.e., it applies transformation -/// if and only if it can gaurantee a gain with high confidence. +/// This file implements a pass that converts X86 cmov instructions into +/// branches when profitable. This pass is conservative. It transforms if and +/// only if it can gaurantee a gain with high confidence. /// /// Thus, the optimization applies under the following conditions: -/// 1. Consider as a candidate only CMOV in most inner loop, assuming that -/// most hotspots are represented by these loops. -/// 2. Given a group of CMOV instructions, that are using same EFLAGS def +/// 1. Consider as candidates only CMOVs in innermost loops (assume that +/// most hotspots are represented by these loops). +/// 2. Given a group of CMOV instructions that are using the same EFLAGS def /// instruction: -/// a. Consider them as candidates only if all have same code condition or -/// opposite one, to prevent generating more than one conditional jump -/// per EFLAGS def instruction. +/// a. Consider them as candidates only if all have the same code condition +/// or the opposite one to prevent generating more than one conditional +/// jump per EFLAGS def instruction. /// b. Consider them as candidates only if all are profitable to be -/// converted, assuming that one bad conversion may casue a degradation. -/// 3. Apply conversion only for loop that are found profitable and only for +/// converted (assume that one bad conversion may cause a degradation). +/// 3. Apply conversion only for loops that are found profitable and only for /// CMOV candidates that were found profitable. -/// a. Loop is considered profitable only if conversion will reduce its -/// depth cost by some thrishold. +/// a. A loop is considered profitable only if conversion will reduce its +/// depth cost by some threshold. /// b. CMOV is considered profitable if the cost of its condition is higher /// than the average cost of its true-value and false-value by 25% of -/// branch-misprediction-penalty, this to assure no degredassion even -/// with 25% branch misprediction. +/// branch-misprediction-penalty. This assures no degredation even with +/// 25% branch misprediction. /// /// Note: This pass is assumed to run on SSA machine code. //===----------------------------------------------------------------------===// |

