diff options
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 5b6fca6..7f28a9f 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -2386,16 +2386,7 @@ ccp_fold_builtin (tree stmt, tree fn) } if (result && ignore) - { - /* STRIP_NOPS isn't strong enough -- it'll stop when we change modes, - but given that we're ignoring the result, we don't care what type - is being returned by the transformed function. */ - while (TREE_CODE (result) == NOP_EXPR - || TREE_CODE (result) == CONVERT_EXPR - || TREE_CODE (result) == NON_LVALUE_EXPR) - result = TREE_OPERAND (result, 0); - } - + result = fold_ignored_result (result); return result; } |