function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.

2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.

From-SVN: r274751
This commit is contained in:
Bernd Edlinger 2019-08-20 16:08:12 +00:00 committed by Bernd Edlinger
parent 529f304811
commit 5ba5ad304a
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
* function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
* tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to

View file

@ -2687,7 +2687,7 @@ assign_parm_find_stack_rtl (tree parm, struct assign_parm_data_one *data)
stack slot boundary, take advantage of that excess alignment.
Don't make any assumptions if STACK_POINTER_OFFSET is in use. */
if (poly_int_rtx_p (offset_rtx, &offset)
&& STACK_POINTER_OFFSET == 0)
&& known_eq (STACK_POINTER_OFFSET, 0))
{
unsigned int offset_align = known_alignment (offset) * BITS_PER_UNIT;
if (offset_align == 0 || offset_align > STACK_BOUNDARY)