This is an archive of the discontinued LLVM Phabricator instance.

Refactoring gc_relocate related code in CodeGenPrepare.cpp
ClosedPublic

Authored by chenli on May 11 2015, 4:36 PM.

Details

Summary

The original code insert new instructions by following a Create->Remove->ReInsert flow. This patch removes the unnecessary Remove->ReInsert part by setting up the InsertPoint correctly at the very beginning. This change does not introduce any functionality change.

Diff Detail

Repository
rL LLVM

Event Timeline

chenli updated this revision to Diff 25526.May 11 2015, 4:36 PM
chenli retitled this revision from to Refactoring gc_relocate related code in CodeGenPrepare.cpp.
chenli updated this object.
chenli edited the test plan for this revision. (Show Details)
chenli added reviewers: sanjoy, reames, AndyAyers.
chenli added a subscriber: Unknown Object (MLST).
sanjoy accepted this revision.May 11 2015, 4:39 PM
sanjoy edited edge metadata.

LGTM under the assumption that this is NFC.

I assume it is okay if I check this in for you?

This revision is now accepted and ready to land.May 11 2015, 4:39 PM

Thanks for checking it in!

This revision was automatically updated to reflect the committed changes.