diff options
author | Jan Hubicka <jh@suse.cz> | 2024-05-16 15:33:55 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2024-05-16 15:33:55 +0200 |
commit | 96d53252aefcbc2fe419c4c3b4bcd3fc03d4d187 (patch) | |
tree | 402b6e6a244ac79f1454577898b8f0b201f59eb1 /gcc/cfgloopanal.cc | |
parent | f3e5f4c58591f5dacdd14a65ec47bbe310df02a0 (diff) | |
download | gcc-96d53252aefcbc2fe419c4c3b4bcd3fc03d4d187.zip gcc-96d53252aefcbc2fe419c4c3b4bcd3fc03d4d187.tar.gz gcc-96d53252aefcbc2fe419c4c3b4bcd3fc03d4d187.tar.bz2 |
Fix points_to_local_or_readonly_memory_p wrt TARGET_MEM_REF
TARGET_MEM_REF can be used to offset constant base into a memory object (to
produce lea instruction). This confuses points_to_local_or_readonly_memory_p
which treats the constant address as a base of the access.
Bootstrapped/regtsted x86_64-linux, comitted.
Honza
gcc/ChangeLog:
PR ipa/113787
* ipa-fnsummary.cc (points_to_local_or_readonly_memory_p): Do not
look into TARGET_MEM_REFS with constant opreand 0.
gcc/testsuite/ChangeLog:
* gcc.c-torture/execute/pr113787.c: New test.
Diffstat (limited to 'gcc/cfgloopanal.cc')
0 files changed, 0 insertions, 0 deletions