From 60b65f30c932eaf967922785253a85a1aa14cebb Mon Sep 17 00:00:00 2001 From: MaheshRavishankar <1663364+MaheshRavishankar@users.noreply.github.com> Date: Sun, 25 Aug 2024 23:34:24 -0700 Subject: [PATCH] Bump LLVM to llvm/llvm-project@4dbaef6 (#18348) Signed-off-by: MaheshRavishankar --- .../compiler/Codegen/Common/CPU/CPUPrepareUkernels.cpp | 8 +++++++- third_party/llvm-project | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/compiler/src/iree/compiler/Codegen/Common/CPU/CPUPrepareUkernels.cpp b/compiler/src/iree/compiler/Codegen/Common/CPU/CPUPrepareUkernels.cpp index ca91e34af134..0f8c38bebdd3 100644 --- a/compiler/src/iree/compiler/Codegen/Common/CPU/CPUPrepareUkernels.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/CPU/CPUPrepareUkernels.cpp @@ -140,7 +140,13 @@ static LogicalResult reduceDefiningOp(PatternRewriter &rewriter, Value input) { options.controlFn = [](Operation *op) -> SmallVector { return {0}; }; - return linalg::dropUnitDims(rewriter, producer, options); + FailureOr result = + linalg::dropUnitDims(rewriter, producer, options); + if (failed(result)) { + return failure(); + } + rewriter.replaceOp(producer, result->replacements); + return success(); } /// Drops the first element from all the tile sizes list. The first element is diff --git a/third_party/llvm-project b/third_party/llvm-project index a71fa258ab8e..085448c918aa 160000 --- a/third_party/llvm-project +++ b/third_party/llvm-project @@ -1 +1 @@ -Subproject commit a71fa258ab8e457b2ff0e7b2ce60da5c1ee591e9 +Subproject commit 085448c918aa3b730cdd3e497892cfeff0ed60a6