[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:
parent
5699b9d115
commit
945a01f921
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue