[PM] Fix new PM to perform SpeculativeExecution as in old PM
authordfukalov <daniil.fukalov@amd.com>
Mon, 29 Jun 2020 00:43:26 +0000 (03:43 +0300)
committerdfukalov <daniil.fukalov@amd.com>
Tue, 30 Jun 2020 12:21:04 +0000 (15:21 +0300)
commit1a6cebb4d12c744699e23624f8afda5cbe216fe6
treeddb54addaff4220516b9357e533d4a067be92c87
parentbc163f63245e88f18de44f8a13a5c94e78cb18bd
[PM] Fix new PM to perform SpeculativeExecution as in old PM

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.

Reviewers: chandlerc, arsenm

Reviewed By: arsenm

Subscribers: wdng, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82735
llvm/lib/Passes/PassBuilder.cpp