re PR tree-optimization/15738 ([tree-ssa] Convert strrchr(s, c) to strchr(s, c) if...
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 2 Jun 2004 18:41:40 +0000 (18:41 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 2 Jun 2004 18:41:40 +0000 (18:41 +0000)
commit91fa0e3de67af533eeeb8ef494a2bb66187570c1
tree65221ce7e77f96f29e46ef3c29199f2d88f183f4
parentdff008b446fd93001c3e0c97d503042c37fa8574
re PR tree-optimization/15738 ([tree-ssa] Convert strrchr(s, c) to strchr(s, c) if c is known to be 0)

PR tree-optimization/15738.
* builtins.c (fold_builtin_strchr): Transform
strrchr (s, '\0') to strchr (s, '\0').

From-SVN: r82572
gcc/ChangeLog
gcc/builtins.c