This fixes two problems which are usualy caused together: 1) The elements of an isl AST access expression could be pointers not only integers, floats and vectores thereof. 2) The runtime alias checks need to compare pointers but if they are of a different type we need to cast them into a "max" type similar to the non pointer case.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Very nice fix and test case.
There is a minor nit in the test case and you may want to mention that you choose i8 as the max type,
test/Isl/CodeGen/aliasing_different_pointer_types.ll | ||
---|---|---|
1 | -polly-code-generator=isl is not needed. |
-polly-code-generator=isl is not needed.