This is an archive of the discontinued LLVM Phabricator instance.

[Polly] [PPCGCodeGeneration] Fix offset computation for managed arrays.
Needs RevisionPublic

Authored by bollu on Sep 28 2017, 5:09 AM.

Details

Summary
  • Code duplication let to a code sequence which looks like:
ll
arr1 = arr + offset
arr2 = arr1 - offset

thereby making the Offset field useless. Fix this.

NOTE: Offset on HostPtr still looks suspicious.

Event Timeline

bollu created this revision.Sep 28 2017, 5:09 AM
This revision is now accepted and ready to land.Sep 28 2017, 5:24 AM
philip.pfaffe requested changes to this revision.Dec 1 2017, 4:33 AM

Actually the tests requires some changes.

managed-mem-with-offset.ll
17

Please don't hardcode unnamed registers

This revision now requires changes to proceed.Dec 1 2017, 4:33 AM