tree-optimization/93964 - adjust ISL code generation for pointer params
authorRichard Biener <rguenther@suse.de>
Wed, 4 Mar 2020 09:40:32 +0000 (10:40 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 4 Mar 2020 10:37:27 +0000 (11:37 +0100)
commitdca54007ebb5d49c3d6cea63ee87fd8f3ccb9ca5
treeb406164716fc77c35134ca2f5f6715a5997d98f1
parentc7ec2f9ff6d064c4d446dbf521d554eb10254d34
tree-optimization/93964 - adjust ISL code generation for pointer params

Pointers eventually need intermediate conversions in code generation.
Allowing them is much easier than fending them off since niter
and scev expansion easily drag those in.

2020-02-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/93964
* graphite-isl-ast-to-gimple.c
(gcc_expression_from_isl_ast_expr_id): Add intermediate
conversion for pointer to integer converts.
* graphite-scop-detection.c (assign_parameter_index_in_region):
Relax assert.

* gcc.dg/graphite/pr93964.c: New testcase.
gcc/ChangeLog
gcc/graphite-isl-ast-to-gimple.c
gcc/graphite-scop-detection.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr93964.c [new file with mode: 0644]