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

Longsheng Du llvmlistbot at llvm.org
Thu Jan 8 02:51:14 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 {
----------------
LongshengDu wrote:

Added tests in `mlir/test/Dialect/LLVMIR/nvvm-test-range.mlir`.

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


More information about the Mlir-commits mailing list