This is an archive of the discontinued LLVM Phabricator instance.

Support for lifetime begin/end markers in the use optimizer
ClosedPublic

Authored by dberlin on Aug 2 2016, 12:11 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

dberlin updated this revision to Diff 66519.
dberlin retitled this revision from to Support for lifetime begin/end markers in the use optimizer.
dberlin updated this object.
dberlin added a reviewer: george.burgess.iv.
dberlin added a subscriber: llvm-commits.
  • Remove dead comment

Tests coming.
George, i also am not clear on the proper way to integrate this into the walker and clobber checker :)

  • Fix bug, add test
george.burgess.iv accepted this revision.Aug 2 2016, 3:02 PM
george.burgess.iv edited edge metadata.

LGTM with nits; thanks!

lib/Transforms/Utils/MemorySSA.cpp
180 ↗(On Diff #66534)

Please kill these brackets

181 ↗(On Diff #66534)

return AA.isMustAlias(...);?

test/Transforms/Util/MemorySSA/lifetime-simple.ll
2 ↗(On Diff #66534)

Please add a newline after this line

10 ↗(On Diff #66534)

Is there a reason these aren't vanilla CHECKs?

(If not, please also add the ; CHECK-NEXT: %0 = load ... after each check for MemoryDef/MemoryUse, for consistency with the other tests)

This revision is now accepted and ready to land.Aug 2 2016, 3:02 PM
dberlin updated this revision to Diff 66565.Aug 2 2016, 3:07 PM
dberlin edited edge metadata.

Rebase

This revision was automatically updated to reflect the committed changes.