* config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.

From-SVN: r149507
This commit is contained in:
DJ Delorie 2009-07-10 23:45:51 -04:00 committed by DJ Delorie
parent 34b736c155
commit 82e4509550
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2009-07-10 DJ Delorie <dj@redhat.com>
* config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
2009-07-10 Mark Mitchell <mark@codesourcery.com>
* config/arm/thumb2.md (thumb2_cbz): Correct computation of length

View File

@ -4115,14 +4115,12 @@ mep_can_inline_p (tree caller, tree callee)
if (TREE_CODE (callee) == ADDR_EXPR)
callee = TREE_OPERAND (callee, 0);
if (TREE_CODE (callee) == FUNCTION_DECL
&& DECL_DECLARED_INLINE_P (callee)
&& !mep_vliw_function_p (caller)
if (!mep_vliw_function_p (caller)
&& mep_vliw_function_p (callee))
{
return true;
return false;
}
return false;
return true;
}
#define FUNC_CALL 1