]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386, ipa-modref: Comment spelling fix
authorJakub Jelinek <jakub@redhat.com>
Sat, 4 Dec 2021 10:09:33 +0000 (11:09 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 4 Dec 2021 10:09:33 +0000 (11:09 +0100)
This patch fixes spelling of prefer (misspelled as preffer).

2021-12-04  Jakub Jelinek  <jakub@redhat.com>

* config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY): Fix
comment typo, Preffer -> prefer.
* ipa-modref-tree.c (modref_access_node::closer_pair_p): Likewise.

gcc/config/i386/x86-tune.def
gcc/ipa-modref-tree.c

index 20cb662737848ccde54f0511a31decf9acbc4c6a..de9759a2301813312adb616dd403cecc0660b6b7 100644 (file)
@@ -45,8 +45,8 @@ DEF_TUNE (X86_TUNE_SCHEDULE, "schedule",
          | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE | m_GENERIC)
 
 /* X86_TUNE_PARTIAL_REG_DEPENDENCY: Enable more register renaming
-   on modern chips.  Preffer stores affecting whole integer register
-   over partial stores.  For example preffer MOVZBL or MOVQ to load 8bit
+   on modern chips.  Prefer stores affecting whole integer register
+   over partial stores.  For example prefer MOVZBL or MOVQ to load 8bit
    value over movb.  */
 DEF_TUNE (X86_TUNE_PARTIAL_REG_DEPENDENCY, "partial_reg_dependency",
           m_P4_NOCONA | m_CORE2 | m_NEHALEM  | m_SANDYBRIDGE | m_CORE_AVX2
index 0671fa761998d285c224ffbd46dbeb335c87affb..a868e3e39836046b39b2936da4e6ccfaf9237f64 100644 (file)
@@ -297,7 +297,7 @@ modref_access_node::closer_pair_p (const modref_access_node &a1,
        dist2 = offseta2 - offsetb2 - b2.max_size;
     }
   /* It may happen that intervals overlap in case size
-     is different.  Preffer the overlap to non-overlap.  */
+     is different.  Prefer the overlap to non-overlap.  */
   if (known_lt (dist1, 0) && known_ge (dist2, 0))
     return true;
   if (known_lt (dist2, 0) && known_ge (dist1, 0))