projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dda497
)
[mlir][sparse] Fix windows build.
author
bixia1
<bixia@google.com>
Tue, 1 Nov 2022 23:55:24 +0000
(16:55 -0700)
committer
bixia1
<bixia@google.com>
Wed, 2 Nov 2022 00:00:02 +0000
(17:00 -0700)
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D137210
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
index
a051946
..
9c002f1
100644
(file)
--- a/
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
+++ b/
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
@@
-618,7
+618,7
@@
private:
uint64_t rank = dstTp.getRank();
// Gather the indices-arrays in the dst tensor storage order.
SmallVector<Value, 4> xs(rank, Value());
- for (int64_t i = 0; i < rank; i++) {
+ for (
u
int64_t i = 0; i < rank; i++) {
uint64_t orgDim = toOrigDim(encSrc, i);
xs[toStoredDim(encDst, orgDim)] = rewriter.create<ToIndicesOp>(
loc, indTp, src, rewriter.getIndexAttr(orgDim));