]> granicus.if.org Git - llvm/commitdiff
fix more typos; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 30 Aug 2017 13:19:23 +0000 (13:19 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 30 Aug 2017 13:19:23 +0000 (13:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312120 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CmovConversion.cpp

index f84edaeb4abc8ca5445f868d921695a8120f27df..f7967004e20f61092da67951351e71980601f384 100644 (file)
@@ -9,7 +9,7 @@
 /// \file
 /// 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.
+/// only if it can guarantee a gain with high confidence.
 ///
 /// Thus, the optimization applies under the following conditions:
 ///   1. Consider as candidates only CMOVs in innermost loops (assume that
@@ -27,7 +27,7 @@
 ///         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 assures no degredation even with
+///         branch-misprediction-penalty. This assures no degradation even with
 ///         25% branch misprediction.
 ///
 /// Note: This pass is assumed to run on SSA machine code.