[llvm] [PPC] Set minimum of largest number of comparisons to use bit test for switch lowering (PR #155910)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 22 13:52:36 PDT 2025
================
@@ -2063,6 +2077,9 @@ class LLVM_ABI TargetLoweringBase {
virtual bool isJumpTableRelative() const;
+ /// Retuen the minimum of largest number of comparisons in BitTest.
+ virtual unsigned getMinimumBitTestCmps() const;
----------------
efriedma-quic wrote:
This doesn't need to be virtual if you have a member variable.
```suggestion
unsigned getMinimumBitTestCmps() const;
```
https://github.com/llvm/llvm-project/pull/155910
More information about the llvm-commits
mailing list