[Mlir-commits] [mlir] [mlir][NVVM] Set SpecialRangeableRegisterOp default int range to max (PR #174544)

Guray Ozen llvmlistbot at llvm.org
Tue Jan 6 09:28:56 PST 2026


================
@@ -4544,6 +4544,8 @@ static void nvvmInferResultRanges(Operation *op, Value result,
   if (auto rangeAttr = op->getAttrOfType<LLVM::ConstantRangeAttr>("range")) {
     setResultRanges(result, {rangeAttr.getLower(), rangeAttr.getUpper(),
                              rangeAttr.getLower(), rangeAttr.getUpper()});
+  } else {
+    setResultRanges(result, IntegerValueRange::getMaxRange(result).getValue());
----------------
grypp wrote:

We know the limits actually for our hardware. They haven't changed for last 15 years, maybe can set them? 

https://github.com/llvm/llvm-project/pull/174544


More information about the Mlir-commits mailing list