[clang] [llvm] [ValueTracking] Extend computeConstantRange for add/sub, sext/zext/trunc (PR #181110)
Guy David via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 26 04:55:52 PST 2026
================
@@ -9818,10 +9818,14 @@ std::optional<bool> llvm::isImpliedByDomCondition(CmpPredicate Pred,
return std::nullopt;
}
-static void setLimitsForBinOp(const BinaryOperator &BO, APInt &Lower,
- APInt &Upper, const InstrInfoQuery &IIQ,
- bool PreferSignedRange) {
- unsigned Width = Lower.getBitWidth();
+static ConstantRange getRangeForBinOp(const BinaryOperator &BO, bool ForSigned,
+ bool UseInstrInfo, AssumptionCache *AC,
+ const Instruction *CtxI,
+ const DominatorTree *DT, unsigned Depth) {
----------------
guy-david wrote:
I'll add it as an NFC after the fact.
https://github.com/llvm/llvm-project/pull/181110
More information about the cfe-commits
mailing list