Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@482283042f79
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[482283042f79](llvm/llvm-project@482283042f79)

PiperOrigin-RevId: 365710568
  • Loading branch information
iree-copybara-bot authored and iree-github-actions-bot committed Mar 30, 2021
1 parent 3c3cb7c commit 0a0db13
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SUBMODULE_VERSIONS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
b1fbd33c06cdb0024c67733c6fdec2009d17b384 third_party/googletest
88b845dee001723c4a0db1fe5477de735b6d3bb0 third_party/liburing
189e771009a640214e08e855830ae6f15a83c655 third_party/llvm-bazel
20d5c42e0ef5d252b434bcb610b04f1cb79fe771 third_party/llvm-project
482283042f795ecc27838a3b2f76b5494991401c third_party/llvm-project
dde739ffd00a6fa99175cf3c0f28e4b763dc6f5f third_party/mlir-emitc
cbef26c6a8f1e4be3f4cfb902db992c45e93b7a6 third_party/mlir-hlo
2b2bd45bbf9be04fd22ece5cc1f54679202e9257 third_party/pffft
Expand Down
10 changes: 6 additions & 4 deletions iree/compiler/Conversion/Common/LinalgBufferizePass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,14 @@ static LogicalResult convertTensorReshapeOp(
resultTensorType, {}, inputBufferType.getMemorySpaceAsInt());
Value bufferReshape = b.create<linalg::ReshapeOp>(
loc, reshapeResultType, reshapeSrc, op.reassociation());
auto allocationDynamicSizes = linalg::getReshapeOutputShapeFromInputShape(
b, loc, inputBuffer, resultTensorType.getShape(),
op.getReassociationMaps());
SmallVector<SmallVector<Value>> reshapeResultShape;
if (failed(op.reifyReturnTypeShapesPerResultDim(b, reshapeResultShape)) ||
reshapeResultShape.size() != 1) {
return op.emitError("failed to get shape of result");
}
return createAliasingBufferOrAllocationForResult(
b, loc, allocationFn, srcTensor, bufferReshape, resultTensor,
allocationDynamicSizes, bvm);
reshapeResultShape[0], bvm);
}

static SmallVector<int64_t, 4> extractFromI64ArrayAttr(ArrayAttr attr) {
Expand Down
2 changes: 1 addition & 1 deletion third_party/llvm-project
Submodule llvm-project updated 652 files

0 comments on commit 0a0db13

Please sign in to comment.