This is an archive of the discontinued LLVM Phabricator instance.

[Refactor] Move AccFuncMap from ScopInfo into Scop
ClosedPublic

Authored by etherzhhb on Feb 12 2016, 10:17 PM.

Details

Summary

Since the origin AccFuncMap in ScopInfo is used by the underlying Scop only, and it must stay alive until we delete the Scop. It will be better if we simply move the origin AccFuncMap in ScopInfo into the Scop class.

This patch also help making Scop become more portable, such that we can use it in a CallGraphSCC pass.

Diff Detail

Repository
rL LLVM

Event Timeline

etherzhhb updated this revision to Diff 47898.Feb 12 2016, 10:17 PM
etherzhhb retitled this revision from to [Refactor] Move AccFuncMap from ScopInfo into Scop.
etherzhhb updated this object.
etherzhhb set the repository for this revision to rL LLVM.
etherzhhb added a subscriber: Restricted Project.
jdoerfert accepted this revision.Feb 13 2016, 6:29 AM
jdoerfert edited edge metadata.

We should delete this aweful and useless map but for now I settle with the move.

This revision is now accepted and ready to land.Feb 13 2016, 6:29 AM