[llvm] [DemandedBits] Support non-constant shift amounts (PR #148880)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 01:02:34 PDT 2025
================
@@ -76,6 +76,19 @@ void DemandedBits::determineLiveOperandBits(
computeKnownBits(V2, Known2, DL, &AC, UserI, &DT);
}
};
+ auto GetShiftedRange = [&](unsigned Min, unsigned Max, bool ShiftLeft) {
+ using ShiftFn = APInt (APInt::*)(unsigned) const;
----------------
artagnon wrote:
I think you can use llvm::function_ref here?
https://github.com/llvm/llvm-project/pull/148880
More information about the llvm-commits
mailing list