Use BFI if it is available and BPI otherwise.
This is a promised follow-up after D89541.
Details
Details
- Reviewers
ebrevnov mkazantsev - Commits
- rG75d0e0cd5f4c: [IRCE] consolidate profitability check
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a nit.
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | ||
---|---|---|
1929 | IMHO, it would be a bit cleaner API if we pass 'LS' and retrieve required info from it inside checkProfitability. |
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | ||
---|---|---|
246–248 | Passing-by nit: the comment suggests the method should be called isProfitableToTransform() or something |
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | ||
---|---|---|
246–248 | (please don't wait for me here) |
Passing-by nit: the comment suggests the method should be called isProfitableToTransform() or something