[IRCE] consolidate profitability check
authorSerguei Katkov <serguei.katkov@azul.com>
Tue, 20 Oct 2020 06:28:20 +0000 (13:28 +0700)
committerSerguei Katkov <serguei.katkov@azul.com>
Thu, 22 Oct 2020 04:26:45 +0000 (11:26 +0700)
commit75d0e0cd5f4c584f235b98e13c01421683bf0b80
treeb858d81a1d058ee379cfa07b5e6d2cd7f19a4a91
parent5b68772ca92cecb8ac9205f8e4523a5bc0c8e25e
[IRCE] consolidate profitability check

Use BFI if it is available and BPI otherwise.
This is a promised follow-up after D89541.

Reviewers: ebrevnov, mkazantsev
Reviewed By: ebrevnov
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D89773
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp