Commit Graph

4 Commits

Author SHA1 Message Date
Roman Lebedev e58ce35f7b
[SimplifyCFG] Don't speculatively execute BB if it's predictably not taken
If the branch isn't `unpredictable`, and it is predicted to *not* branch
to the block we are considering speculatively executing,
then it seems counter-productive to execute the code that is predicted not to be executed.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D106650
2021-07-26 02:55:14 +03:00
Roman Lebedev 48379f27d0
[NFC][SimplifyCFG] Add more negative tests for profmd-induced speculation avoidance 2021-07-26 02:55:08 +03:00
Roman Lebedev 1f341aedc9
[NFC][SimplifyCFG] Add tests for `FoldTwoEntryPHINode()` with prof md 2021-07-24 01:03:37 +03:00
Roman Lebedev b63833ac1f
[NFC][SimplifyCFG] Add test for `SpeculativelyExecuteBB()` with prof md 2021-07-23 14:25:53 +03:00