[llvm] [GlobalISel] Add computeNumSignBits for ASHR (PR #139503)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 01:08:07 PDT 2025
================
@@ -960,6 +968,64 @@ unsigned GISelValueTracking::computeNumSignBits(Register R, unsigned Depth) {
return computeNumSignBits(R, DemandedElts, Depth);
}
+std::optional<ConstantRange> GISelValueTracking::getValidShiftAmountRange(
----------------
davemgreen wrote:
What do you mean? The intent was to have it behave the same as the SDAG version, so that it can be reused in similar ways. The IR version seems to only match a single APInt?
https://github.com/llvm/llvm-project/pull/139503
More information about the llvm-commits
mailing list