diff options
author | Richard Biener <rguenther@suse.de> | 2014-11-26 14:39:43 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-11-26 14:39:43 +0000 |
commit | 8006f46bdd8be581f287ed7d1c2d204c608fb426 (patch) | |
tree | 8513d233a582b2c8a38f6db93929f5a48aaf43a8 /gcc/tree-data-ref.c | |
parent | 4186636315b90403a2dc34952b34f6ab4b79ed16 (diff) | |
download | gcc-8006f46bdd8be581f287ed7d1c2d204c608fb426.zip gcc-8006f46bdd8be581f287ed7d1c2d204c608fb426.tar.gz gcc-8006f46bdd8be581f287ed7d1c2d204c608fb426.tar.bz2 |
fold-const.h (const_unop): Declare.
2014-11-26 Richard Biener <rguenther@suse.de>
* fold-const.h (const_unop): Declare.
(const_binop): Likewise.
* fold-const.c (const_binop): Export overload that expects
a type parameter and dispatches to fold_relational_const as well.
Check both operand kinds for guarding the transforms.
(const_unop): New function, with constant folding from fold_unary_loc.
(fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
Remove constant folding done there from the simplifications.
(fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
(fold_negate_expr): Remove dead code from the REAL_CST case.
Avoid building garbage in the COMPLEX_CST case.
* gimple-match-head.c (gimple_resimplify1): Dispatch to
const_unop.
(gimple_resimplify2): Dispatch to const_binop.
(gimple_simplify): Likewise.
From-SVN: r218086
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions