This is an archive of the discontinued LLVM Phabricator instance.

[PM] Port SpeculativeExecution to new PM
ClosedPublic

Authored by mkuper on Aug 1 2016, 1:53 PM.

Details

Summary

I'm a bit annoyed at having to keep a OnlyIfDivergentTarget variable in the legacy pass only because it changes the name of the class, but the other option is to query Impl for that - and I prefer a hack in the legacy version to a hack in the new version.

Diff Detail

Repository
rL LLVM

Event Timeline

mkuper updated this revision to Diff 66375.Aug 1 2016, 1:53 PM
mkuper retitled this revision from to [PM] Port SpeculativeExecution to new PM.
mkuper updated this object.
mkuper added reviewers: silvas, davide.
mkuper added a subscriber: llvm-commits.
davide accepted this revision.Aug 1 2016, 2:42 PM
davide edited edge metadata.

I also prefer an hack in the old version. When I stumbled upon BasicBlock passes I first changed them to be function passes in the old PM and then did the transition. I guess in this case it's not really needed, and probably overkill. LGTM.

This revision is now accepted and ready to land.Aug 1 2016, 2:42 PM
This revision was automatically updated to reflect the committed changes.