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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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.