[RS6000] Don't expand strcmp and strncmp inline when -Os

* config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
	optimizing for size.

From-SVN: r244660
This commit is contained in:
Alan Modra 2017-01-20 09:51:53 +10:30 committed by Alan Modra
parent 5699b9d115
commit 945a01f921
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2017-01-20 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
optimizing for size.
2017-01-20 Alan Modra <amodra@gmail.com>
PR target/79144

View file

@ -9102,6 +9102,9 @@
(use (match_operand:SI 4))])]
"TARGET_CMPB && (BYTES_BIG_ENDIAN || TARGET_LDBRX)"
{
if (optimize_insn_for_size_p ())
FAIL;
if (expand_strn_compare (operands, 0))
DONE;
else
@ -9121,6 +9124,9 @@
(use (match_operand:SI 3))])]
"TARGET_CMPB && (BYTES_BIG_ENDIAN || TARGET_LDBRX)"
{
if (optimize_insn_for_size_p ())
FAIL;
if (expand_strn_compare (operands, 1))
DONE;
else