re PR tree-optimization/24653 (EON regressed seriously on x86-64)
PR tree-optimization/24653 * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions. From-SVN: r107304
This commit is contained in:
parent
1c2871213e
commit
078152a256
@ -1,3 +1,8 @@
|
||||
2005-11-21 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
PR tree-optimization/24653
|
||||
* tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
|
||||
|
||||
2005-11-21 Uros Bizjak <uros@kss-loka.si>
|
||||
|
||||
* config/i386/predicates.md (ax_reg_operand): New predicate.
|
||||
|
@ -879,6 +879,10 @@ ccp_fold (tree stmt)
|
||||
op0 = get_value (op0, true)->value;
|
||||
}
|
||||
|
||||
if ((code == NOP_EXPR || code == CONVERT_EXPR)
|
||||
&& tree_ssa_useless_type_conversion_1 (TREE_TYPE (rhs),
|
||||
TREE_TYPE (op0)))
|
||||
return op0;
|
||||
return fold_unary (code, TREE_TYPE (rhs), op0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user