Use MEM_SIZE rather than GET_MODE_SIZE in dce.c
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 15 Nov 2016 18:18:08 +0000 (18:18 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 15 Nov 2016 18:18:08 +0000 (18:18 +0000)
commit7eb874201e7dccfe9e9afe9a51011a84b4527f29
tree0f2318e61053ad855bffc49f665bbaa25530e5e6
parent231314e360037e711922ece00817f8c2abc7aec0
Use MEM_SIZE rather than GET_MODE_SIZE in dce.c

Using MEM_SIZE is more general, since it copes with cases where
targets are forced to use BLKmode references for whatever reason.

gcc/
2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

* dce.c (check_argument_store): Pass the size instead of
the memory reference.
(find_call_stack_args): Pass MEM_SIZE to check_argument_store.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r242446
gcc/ChangeLog
gcc/dce.c