[Mlir-commits] [mlir] b56a0b0 - [mlir][sparse] add missing file for singleton revision

Aart Bik llvmlistbot at llvm.org
Tue Aug 30 11:10:05 PDT 2022


Author: Aart Bik
Date: 2022-08-30T11:09:53-07:00
New Revision: b56a0b0cf3c7c007b03b55338ddc9ef6639ebc3d

URL: https://github.com/llvm/llvm-project/commit/b56a0b0cf3c7c007b03b55338ddc9ef6639ebc3d
DIFF: https://github.com/llvm/llvm-project/commit/b56a0b0cf3c7c007b03b55338ddc9ef6639ebc3d.diff

LOG: [mlir][sparse] add missing file for singleton revision

Differential Revision: https://reviews.llvm.org/D132961

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/SparseTensorUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
index e2c407216d1f2..11ca02fc98235 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
@@ -934,8 +934,11 @@ class SparseTensorNNZ final {
         // when adding support for multiple compressed dimensions or
         // for dense-after-compressed.
         break;
+      default:
+        FATAL("unsupported dimension level type");
       }
       sz = checkedMul(sz, dimSizes[r]);
+
     }
   }
 


        


More information about the Mlir-commits mailing list