Assign result of get_string_lenth to a SSA_NAME (PR tree-optimization/83552).
authorMartin Liska <mliska@suse.cz>
Wed, 27 Dec 2017 09:30:14 +0000 (10:30 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 27 Dec 2017 09:30:14 +0000 (09:30 +0000)
commit96863f32b5d83961fc1cb073707f0cf53a475639
tree6ca82892512f349b1d0537111c13dfffe4e8b50a
parent7ec16b79f003f568a398de192adc8f3e957327fe
Assign result of get_string_lenth to a SSA_NAME (PR tree-optimization/83552).

2017-12-27  Martin Liska  <mliska@suse.cz>

PR tree-optimization/83552
* tree-ssa-strlen.c (fold_strstr_to_strncmp): Assign result
of get_string_lenth to a SSA_NAME if not a GIMPLE value.
2017-12-27  Martin Liska  <mliska@suse.cz>

PR tree-optimization/83552
* gcc.dg/pr83552.c: New test.

From-SVN: r256009
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83552.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c