From c060e5c49c40ddc8818e4489665650e3661b045c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek <jakub@redhat.com> Date: Sat, 4 Dec 2021 11:09:33 +0100 Subject: [PATCH] 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. --- gcc/config/i386/x86-tune.def | 4 ++-- gcc/ipa-modref-tree.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/i386/x86-tune.def b/gcc/config/i386/x86-tune.def index 20cb66273784..de9759a23018 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 0671fa761998..a868e3e39836 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)) -- GitLab