Currently Polly cannot generate code for index expressions if the base pointer
is computed within the scop. The base pointer must be generated as well, but
there is no code that triggers that.
Add an assertion to detect when this would occur and miscompile. The IR verifier
should catch it as well.
llvm-svn: 282893
if (!MA->hasNewAccessRelation())
continue;
+ assert(!MA->getLatestScopArrayInfo()->getBasePtrOriginSAI() &&
+ "Generating new index expressions to indirect arrays not working");
+
auto Schedule = isl_ast_build_get_schedule(Build);
auto PWAccRel = MA->applyScheduleToAccessRelation(Schedule);