]> granicus.if.org Git - llvm/commit
Merging r368873:
authorHans Wennborg <hans@hanshq.net>
Fri, 16 Aug 2019 07:18:49 +0000 (07:18 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 16 Aug 2019 07:18:49 +0000 (07:18 +0000)
commit4b0b5b6a1b16eac9f86e5e093ea0ca960bb99d4d
tree31bf4ed94965ee35cecd9ca0451fbf26cf05c97c
parent66a1d871d004b134c3704cc4b69d34ff6c4f2fc9
Merging r368873:
------------------------------------------------------------------------
r368873 | void | 2019-08-14 18:44:07 +0200 (Wed, 14 Aug 2019) | 15 lines

Ignore indirect branches from callbr.

Summary:
We can't speculate around indirect branches: indirectbr and invoke. The
callbr instruction needs to be included here.

Reviewers: nickdesaulniers, manojgupta, chandlerc

Reviewed By: chandlerc

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66200
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_90@369085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
test/Transforms/SpeculateAroundPHIs/pr42991.ll [new file with mode: 0644]