This is an archive of the discontinued LLVM Phabricator instance.

[Polly] [ManagedMemoryRewrite] Iterate over operands of the expanded instruction, not the constantexpr itself.
ClosedPublic

Authored by bollu on Aug 19 2017, 9:12 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

bollu created this revision.Aug 19 2017, 9:12 AM
bollu retitled this revision from [Polly] [ManagedMemoryRewrite] Iterate over operands of the expanded instruction, not the constantexpr itself [NFC] to [Polly] [ManagedMemoryRewrite] Iterate over operands of the expanded instruction, not the constantexpr itself..Aug 19 2017, 9:14 AM
bollu updated this revision to Diff 111838.Aug 19 2017, 10:39 AM
  • Invalidate Cur by deleting it and setting it to nullptr
lib/CodeGen/ManagedMemoryRewrite.cpp
134 ↗(On Diff #111838)

Not sure if this is sane. Thoughts?

grosser edited edge metadata.Aug 19 2017, 10:44 AM

LGTM, only some minor comments.

lib/CodeGen/ManagedMemoryRewrite.cpp
126 ↗(On Diff #111838)

Deleting does not seem to be save.

150 ↗(On Diff #111838)

Empty line.

bollu updated this revision to Diff 111839.Aug 19 2017, 10:46 AM
  • Don't call DeleteValue on the ConstantExpr because there can be multiple use sites
bollu updated this revision to Diff 111844.Aug 19 2017, 11:00 AM
  • [NFC] remove empty line
bollu updated this revision to Diff 111846.Aug 19 2017, 11:01 AM
  • [NFC] reorder statements
bollu marked 2 inline comments as done.Aug 19 2017, 11:02 AM
This revision is now accepted and ready to land.Aug 19 2017, 11:08 AM
This revision was automatically updated to reflect the committed changes.