[NFCI][SimplifyCFG] Combine select costs and checks
authorSam Parker <sam.parker@arm.com>
Mon, 24 Aug 2020 08:13:08 +0000 (09:13 +0100)
committerSam Parker <sam.parker@arm.com>
Mon, 24 Aug 2020 08:16:11 +0000 (09:16 +0100)
commit8ce450da329e3b011ff5adc685ca6eb4c2b09e74
tree28b8ee68177509d35a11b9007ec67a941c7c575d
parent7a4e26adc8c2c00985fb460aba36a0884d412833
[NFCI][SimplifyCFG] Combine select costs and checks

Combine the cost modelling and validity checks for the phi to select
conversion in SpeculativelyExecuteBB, extracting the logic out into
a function.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp