aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-04 21:10:39 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-04 19:10:39 +0000
commit9af0d5ef3b14a9b3e4b0cb6aaaaba44ea722fb06 (patch)
tree90199a84475cb3827c5bcbb0f3894c5b7900dfa3 /gcc
parent924b92765863cfedb1955c712cf12d1ec56d229b (diff)
downloadgcc-9af0d5ef3b14a9b3e4b0cb6aaaaba44ea722fb06.zip
gcc-9af0d5ef3b14a9b3e4b0cb6aaaaba44ea722fb06.tar.gz
gcc-9af0d5ef3b14a9b3e4b0cb6aaaaba44ea722fb06.tar.bz2
* ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
From-SVN: r276597
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ipa-inline.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6da73b6..3c96497 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-10-04 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
+
2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
* match.pd (sinh (x) / cosh (x)): New simplification rule.
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 725e675..2801cb9 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -396,7 +396,7 @@ can_inline_edge_p (struct cgraph_edge *e, bool report,
static int
inline_insns_single (cgraph_node *n, bool hint)
{
- if (opt_for_fn (n->decl, optimize >= 3))
+ if (opt_for_fn (n->decl, optimize) >= 3)
{
if (hint)
return PARAM_VALUE (PARAM_MAX_INLINE_INSNS_SINGLE)
@@ -418,7 +418,7 @@ inline_insns_single (cgraph_node *n, bool hint)
static int
inline_insns_auto (cgraph_node *n, bool hint)
{
- if (opt_for_fn (n->decl, optimize >= 3))
+ if (opt_for_fn (n->decl, optimize) >= 3)
{
if (hint)
return PARAM_VALUE (PARAM_MAX_INLINE_INSNS_AUTO)