diff options
author | Martin Liska <mliska@suse.cz> | 2019-06-27 13:22:36 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-06-27 11:22:36 +0000 |
commit | ef874db611879d5004e1d834543e55d31f2bfe1c (patch) | |
tree | 5acb8e41e88dfb0425ffef3d4f96e0dbaf9601eb /gcc/optabs.c | |
parent | d2d604d83edb86ce3f492d03900fb29dea97725d (diff) | |
download | gcc-ef874db611879d5004e1d834543e55d31f2bfe1c.zip gcc-ef874db611879d5004e1d834543e55d31f2bfe1c.tar.gz gcc-ef874db611879d5004e1d834543e55d31f2bfe1c.tar.bz2 |
Fix various issues seen with clang-static-analyzer.
2019-06-27 Martin Liska <mliska@suse.cz>
PR tree-optimization/90974
PR rtl-optimization/90975
PR rtl-optimization/90976
PR target/91016
PR tree-optimization/91017
* config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
unused tmp.
* lra.c (lra_set_insn_recog_data): Remove a leftover from
initial commit of IRA.
* optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
of op0 and op1.
* tree-vect-loop.c (vect_create_epilog_for_reduction):
Remove unused mode1.
* tree-vect-stmts.c (vectorizable_call): Remove dead assignment
to new_stmt_info.
From-SVN: r272746
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 5a718e7..18ca737 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -2095,8 +2095,8 @@ expand_twoval_binop (optab binoptab, rtx op0, rtx op1, rtx targ0, rtx targ1, xop1 = avoid_expensive_constant (mode1, binoptab, 1, xop1, unsignedp); create_fixed_operand (&ops[0], targ0); - create_convert_operand_from (&ops[1], op0, mode, unsignedp); - create_convert_operand_from (&ops[2], op1, mode, unsignedp); + create_convert_operand_from (&ops[1], xop0, mode, unsignedp); + create_convert_operand_from (&ops[2], xop1, mode, unsignedp); create_fixed_operand (&ops[3], targ1); if (maybe_expand_insn (icode, 4, ops)) return 1; |