diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp --- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp +++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp @@ -1018,6 +1018,7 @@ // conversion. Location loc = op.getLoc(); auto desc = getDescriptorFromTensorTuple(adaptor.getTensor()); + Value field = desc.getCrdMemRefOrView(rewriter, loc, op.getLevel()); // Insert a cast to bridge the actual type to the user expected type. If the @@ -1165,11 +1166,9 @@ MLIRContext *ctx = op.getContext(); auto srcEnc = getSparseTensorEncoding(op.getSourceType()); auto dstEnc = getSparseTensorEncoding(op.getResult().getType()); - if (!srcEnc && !dstEnc) - return failure(); - // TODO: We should check these in ExtractSliceOp::verify. - assert(srcEnc && dstEnc && dstEnc.isSlice()); + if (!srcEnc || !dstEnc || !dstEnc.isSlice()) + return failure(); assert(srcEnc.getDimLevelType() == dstEnc.getDimLevelType()); assert(srcEnc.getDimOrdering() == dstEnc.getDimOrdering()); assert(srcEnc.getHigherOrdering() == dstEnc.getHigherOrdering()); diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -7600,6 +7600,7 @@ cc_library( name = "_mlir_cuda_runtime", srcs = ["lib/ExecutionEngine/CudaRuntimeWrappers.cpp"], + #compatible_with = ["//buildenv/target:prod"], # Prevent needing EnableABIBreakingChecks symbol from LLVMSupport. copts = ["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"], tags = [ @@ -7626,6 +7627,7 @@ cc_binary( name = "libmlir_cuda_runtime.so", + #compatible_with = ["//buildenv/target:prod"], linkshared = True, linkstatic = False, tags = [