Turn var-tracking.c:INT_MEM_OFFSET into a function
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 1 Nov 2017 13:56:09 +0000 (13:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Nov 2017 13:56:09 +0000 (13:56 +0000)
commit0299d48bad088eccb76cf71de064dbc047b8cf62
tree9c524e7176476e0c836b872b325b60f7351d18d4
parent8536340f4930c47a5b444da1a2d3ad21519b5676
Turn var-tracking.c:INT_MEM_OFFSET into a function

This avoids the double evaluation mentioned in the comments and
simplifies the change to make MEM_OFFSET variable.

2017-11-01  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* var-tracking.c (INT_MEM_OFFSET): Replace with...
(int_mem_offset): ...this new function.
(var_mem_set, var_mem_delete_and_set, var_mem_delete)
(find_mem_expr_in_1pdv, dataflow_set_preserve_mem_locs)
(same_variable_part_p, use_type, add_stores, vt_get_decl_and_offset):
Update accordingly.

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