]> gcc.gnu.org Git - gcc.git/commit
ipa-sra: Check also ECF_LOOPING_CONST_OR_PURE when evaluating calls
authorMartin Jambor <mjambor@suse.cz>
Tue, 30 Nov 2021 17:45:11 +0000 (18:45 +0100)
committerMartin Jambor <mjambor@suse.cz>
Tue, 30 Nov 2021 17:45:21 +0000 (18:45 +0100)
commite5440bc08e07fd491dcccd47e1b86a5985ee117c
tree2348faca18b82a098b00c49fa19a75f1572cbd6e
parent7057b8f8c2fbb7a2112705c2962d92b8ccef7c30
ipa-sra: Check also ECF_LOOPING_CONST_OR_PURE when evaluating calls

in PR 103267 Honza found out that IPA-SRA does not look at
ECF_LOOPING_CONST_OR_PURE when evaluating if a call can have side
effects.  Fixed with this patch.  The testcase infinitely loops in a
const function, so it would not make a good addition to the testsuite.

gcc/ChangeLog:

2021-11-29  Martin Jambor  <mjambor@suse.cz>

PR ipa/103267
* ipa-sra.c (scan_function): Also check ECF_LOOPING_CONST_OR_PURE flag.
gcc/ipa-sra.c
This page took 0.059824 seconds and 6 git commands to generate.