This is an archive of the discontinued LLVM Phabricator instance.

[PM] Fix new PM to perform SpeculativeExecution as in old PM
ClosedPublic

Authored by dfukalov on Jun 28 2020, 5:49 PM.

Details

Summary

Old PM runs SpeculativeExecutionPass for targets that have divergent branches.
It uses createSpeculativeExecutionIfHasBranchDivergencePass that creates
the pass with OnlyIfDivergentTarget=true, whereas new PM just created the
pass with default OnlyIfDivergentTarget=fase so it unexpectedly runs and
causes buildbot test fails.

Diff Detail