From: Tom de Vries Date: Tue, 28 Apr 2015 08:46:37 +0000 (+0000) Subject: Fix example in header comment in tree-call-cdce.c X-Git-Tag: basepoints/gcc-7~7584 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e8623e9c6a9a1fc742f3f8eec368886c861dfdc;p=thirdparty%2Fgcc.git Fix example in header comment in tree-call-cdce.c 2015-04-28 Tom de Vries * tree-call-cdce.c: Fix example in header comment. From-SVN: r222516 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8efe3d87e442..d3f2a147607b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-04-28 Tom de Vries + + * tree-call-cdce.c: Fix example in header comment. + 2015-04-28 Richard Biener PR tree-optimization/62283 diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c index f0b3ce77c87e..5a6a4cfccf6e 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