aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-12-04 11:09:33 +0100
committerJakub Jelinek <jakub@redhat.com>2021-12-04 11:09:33 +0100
commitc060e5c49c40ddc8818e4489665650e3661b045c (patch)
treecd668a683dd74b96b17afafe61b77724e4fc4f06 /gcc
parentc57c910c945ac68ba9a7cda9b0f963173781d58c (diff)
downloadgcc-c060e5c49c40ddc8818e4489665650e3661b045c.zip
gcc-c060e5c49c40ddc8818e4489665650e3661b045c.tar.gz
gcc-c060e5c49c40ddc8818e4489665650e3661b045c.tar.bz2
i386, ipa-modref: Comment spelling fix
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/x86-tune.def4
-rw-r--r--gcc/ipa-modref-tree.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/i386/x86-tune.def b/gcc/config/i386/x86-tune.def
index 20cb662..de9759a 100644
--- a/gcc/config/i386/x86-tune.def
+++ b/gcc/config/i386/x86-tune.def
@@ -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
diff --git a/gcc/ipa-modref-tree.c b/gcc/ipa-modref-tree.c
index 0671fa7..a868e3e 100644
--- a/gcc/ipa-modref-tree.c
+++ b/gcc/ipa-modref-tree.c
@@ -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))