From: H.J. Lu Date: Sat, 10 May 2025 22:17:45 +0000 (+0800) Subject: x86: Change dest to src in replace_vector_const X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba9d228a92057d3b839e7ea32b12c93fcfc5ff1e;p=thirdparty%2Fgcc.git x86: Change dest to src in replace_vector_const Replace rtx dest = SET_SRC (set); with rtx src = SET_SRC (set); in replace_vector_const to avoid confusion. PR target/92080 PR target/117839 * config/i386/i386-features.cc (replace_vector_const): Change dest to src. Signed-off-by: H.J. Lu --- diff --git a/gcc/config/i386/i386-features.cc b/gcc/config/i386/i386-features.cc index 54b3f6d33b2..13e6c2a8abd 100644 --- a/gcc/config/i386/i386-features.cc +++ b/gcc/config/i386/i386-features.cc @@ -3372,12 +3372,12 @@ replace_vector_const (machine_mode vector_mode, rtx vector_const, /* Get the single SET instruction. */ rtx set = single_set (insn); - rtx dest = SET_SRC (set); - machine_mode mode = GET_MODE (dest); + rtx src = SET_SRC (set); + machine_mode mode = GET_MODE (src); rtx replace; /* Replace the source operand with VECTOR_CONST. */ - if (SUBREG_P (dest) || mode == vector_mode) + if (SUBREG_P (src) || mode == vector_mode) replace = vector_const; else {