[PR 67794] Also remap SSA_NAMEs defined in ASMs in IPA-SRA
authorMartin Jambor <mjambor@suse.cz>
Fri, 9 Oct 2015 13:13:38 +0000 (15:13 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 9 Oct 2015 13:13:38 +0000 (15:13 +0200)
commit6651d6b42eab75d16eb5e764fceab9e4e4d7a71d
tree311e1178ee2b0ba6cad68802df2ea5374cc0fa25
parent1a025b0575e33f9715e18815f9bc55e1df83df8e
[PR 67794] Also remap SSA_NAMEs defined in ASMs in IPA-SRA

2015-10-09  Martin Jambor  <mjambor@suse.cz>

tree-optimization/67794
* tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
between types of state,ents but accept original definitions as a
parameter.
(ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
iterate over definitions.

testsuite/
        * gcc.dg/ipa/ipa-sra-10.c: Nw test.
        * gcc.dg/torture/pr67794.c: Likewise.

From-SVN: r228654
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-sra-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr67794.c [new file with mode: 0644]
gcc/tree-sra.c