aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2021-01-11 14:47:49 +0800
committerliuhongt <hongtao.liu@intel.com>2021-01-12 11:17:29 +0800
commit240f0a490dae0fb9ef72fa21a93e8088d17fb682 (patch)
treef87ac306f08e78d6304b6de19a5010670c493e68 /gcc
parent640296c367f97a1b9974bfb60bb02c934d71baf4 (diff)
downloadgcc-240f0a490dae0fb9ef72fa21a93e8088d17fb682.zip
gcc-240f0a490dae0fb9ef72fa21a93e8088d17fb682.tar.gz
gcc-240f0a490dae0fb9ef72fa21a93e8088d17fb682.tar.bz2
Delete dead code in ix86_expand_sse_comi.
d->flag is always 0 for builtins located in BDESC_FIRST (comi,COMI,...) ... BDESC_END (COMI, PCMPESTR) gcc/ChangeLog: PR target/98612 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS): Deleted. * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete dead code.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/i386-builtins.h4
-rw-r--r--gcc/config/i386/i386-expand.c5
2 files changed, 0 insertions, 9 deletions
diff --git a/gcc/config/i386/i386-builtins.h b/gcc/config/i386/i386-builtins.h
index bb36445..0641808 100644
--- a/gcc/config/i386/i386-builtins.h
+++ b/gcc/config/i386/i386-builtins.h
@@ -236,10 +236,6 @@ struct builtin_isa {
/* Bits for builtin_description.flag. */
-/* Set when we don't support the comparison natively, and should
- swap_comparison in order to support it. */
-#define BUILTIN_DESC_SWAP_OPERANDS 1
-
struct builtin_description
{
const HOST_WIDE_INT mask;
diff --git a/gcc/config/i386/i386-expand.c b/gcc/config/i386/i386-expand.c
index 85ea260..d793e5a 100644
--- a/gcc/config/i386/i386-expand.c
+++ b/gcc/config/i386/i386-expand.c
@@ -8634,11 +8634,6 @@ ix86_expand_sse_comi (const struct builtin_description *d, tree exp,
if (VECTOR_MODE_P (mode1))
op1 = safe_vector_operand (op1, mode1);
- /* Swap operands if we have a comparison that isn't available in
- hardware. */
- if (d->flag & BUILTIN_DESC_SWAP_OPERANDS)
- std::swap (op0, op1);
-
target = gen_reg_rtx (SImode);
emit_move_insn (target, const0_rtx);
target = gen_rtx_SUBREG (QImode, target, 0);