diff options
author | Qing Zhao <qing.zhao@oracle.com> | 2017-11-17 05:32:05 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2017-11-16 22:32:05 -0700 |
commit | caed5c92712701509413c579fb004faa965e4004 (patch) | |
tree | e6a25de7a4c912e87fdd28ec9a45b3cfc6aa2388 /gcc/expr.c | |
parent | 5958557b750254f28954d1ed6a3ce0b9cb48c6fb (diff) | |
download | gcc-caed5c92712701509413c579fb004faa965e4004.zip gcc-caed5c92712701509413c579fb004faa965e4004.tar.gz gcc-caed5c92712701509413c579fb004faa965e4004.tar.bz2 |
re PR middle-end/78809 (Inline strcmp with small constant strings)
2017-11-15 Qing Zhao <qing.zhao@oracle.com>
PR middle-end/78809
* gimple-fold.c (gimple_fold_builtin_string_compare): Add handling
of replacing call to strncmp with corresponding call to strcmp when
meeting conditions.
PR middle-end/78809
* gcc.dg/strcmpopt_1.c: New test.
From-SVN: r254856
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions