[Bug tree-optimization/82525] [GRAPHITE] codegen error for modulo operations we cannot represent
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 13 06:59:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82525
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Oct 13 06:59:13 2017
New Revision: 253706
URL: https://gcc.gnu.org/viewcvs?rev=253706&root=gcc&view=rev
Log:
2017-10-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/82525
* graphite-isl-ast-to-gimple.c
(translate_isl_ast_to_gimple::widest_int_from_isl_expr_int): Split
out from ...
(translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int): Here.
Fail code generation when we cannot represent the isl integer.
(binary_op_to_tree): Elide modulo operations that are no-ops
in the type we code generate. Remove now superfluous code
generation errors.
* gcc.dg/graphite/id-30.c: New testcase.
* gfortran.dg/graphite/id-28.f90: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/graphite/id-30.c
trunk/gcc/testsuite/gfortran.dg/graphite/id-28.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/graphite-isl-ast-to-gimple.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list