aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-call-cdce.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-04-28 08:46:37 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-04-28 08:46:37 +0000
commit0e8623e9c6a9a1fc742f3f8eec368886c861dfdc (patch)
treeac214e85e8b50fca80926d38de3035140ce1caef /gcc/tree-call-cdce.c
parent4e81b788bb6a2f4ecc51965232727d86ca375c94 (diff)
downloadgcc-0e8623e9c6a9a1fc742f3f8eec368886c861dfdc.zip
gcc-0e8623e9c6a9a1fc742f3f8eec368886c861dfdc.tar.gz
gcc-0e8623e9c6a9a1fc742f3f8eec368886c861dfdc.tar.bz2
Fix example in header comment in tree-call-cdce.c
2015-04-28 Tom de Vries <tom@codesourcery.com> * tree-call-cdce.c: Fix example in header comment. From-SVN: r222516
Diffstat (limited to 'gcc/tree-call-cdce.c')
-rw-r--r--gcc/tree-call-cdce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c
index f0b3ce7..5a6a4cf 100644
--- a/gcc/tree-call-cdce.c
+++ b/gcc/tree-call-cdce.c
@@ -76,7 +76,7 @@ along with GCC; see the file COPYING3. If not see
An actual simple example is :
log (x); // Mostly dead call
==>
- if (x < 0)
+ if (x <= 0)
log (x);
With this change, call to log (x) is effectively eliminated, as
in majority of the cases, log won't be called with x out of