Skip to content

Commit 6345290

Browse files
committed
update
1 parent 6b98eeb commit 6345290

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

deps.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def third_party_deps():
2222
path = local_llvm_repo_path(),
2323
)
2424
else:
25-
LLVM_COMMIT = "813f7c3820d00349fe23bfc6ba26159764541540"
26-
LLVM_SHA256 = "a04830a729c030002ce2f1b83e5f894a645fc48830005d40d029aae9acd24340"
25+
LLVM_COMMIT = "5d6d982df61d16b6d498e6d59dd91c059679d3d8"
26+
LLVM_SHA256 = "834184126812eecbdb2ed30de255554a6529295afaf44e9dfd3851d61195dbb5"
2727
http_archive(
2828
name = "llvm-raw",
2929
build_file_content = "# empty",
@@ -39,8 +39,8 @@ def third_party_deps():
3939
path = local_torch_mlir_repo_path(),
4040
)
4141
else:
42-
TORCH_MLIR_COMMIT = "2fb7d6e4dcd06eadb759f2a2e769e53718d0a2f1"
43-
TORCH_MLIR_SHA256 = "111dc77c81706e93728235ffba467277178f10356817e09dc5bd5ab08934323c"
42+
TORCH_MLIR_COMMIT = "169032010793ee7fe3e305ab920e4119fdfc3b11"
43+
TORCH_MLIR_SHA256 = "0f25459b0d6828983c8aa78d139adad4325508bff150b57e97345e9798377dd3"
4444
http_archive(
4545
name = "torch-mlir-raw",
4646
build_file_content = "# empty",
@@ -55,8 +55,8 @@ def third_party_deps():
5555
path = local_stablehlo_repo_path(),
5656
)
5757
else:
58-
STABLEHLO_COMMIT = "6e403b1aa6a71f5eaa09cc720e4ad42f692745e6"
59-
STABLEHLO_SHA256 = "5b6a207f7c41aa986866103a4929e7146acff05830234df5714a45c7100cae3c"
58+
STABLEHLO_COMMIT = "b62dc66da9946b4c400c0d99c9d5bb8e04edaee6"
59+
STABLEHLO_SHA256 = "a51842f5cbcccc2dc74de232793e6fdc0b4403b616281a73bbc704cd227b50db"
6060
http_archive(
6161
name = "stablehlo",
6262
sha256 = STABLEHLO_SHA256,

lib/Pipeline/Pipeline.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
2222
#include "mlir/Conversion/ArithToLLVM/ArithToLLVM.h"
2323
#include "mlir/Conversion/BufferizationToMemRef/BufferizationToMemRef.h"
24+
#include "mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h"
2425
#include "mlir/Conversion/FuncToLLVM/ConvertFuncToLLVMPass.h"
2526
#include "mlir/Conversion/MathToLLVM/MathToLLVM.h"
2627
#include "mlir/Conversion/MathToLibm/MathToLibm.h"
@@ -84,8 +85,6 @@ static void createTcpToLlvmPipeline(OpPassManager &pm) {
8485
bufferizationOptions.setFunctionBoundaryTypeConversion(
8586
bufferization::LayoutMapOption::IdentityLayoutMap);
8687
pm.addPass(bufferization::createOneShotBufferizePass(bufferizationOptions));
87-
pm.addNestedPass<func::FuncOp>(
88-
bufferization::createFinalizingBufferizePass());
8988
// Buffer deallocation pipeline for automatically inserting
9089
// buffer deallocation ops after one-shot bufferization.
9190
// https://sourcegraph.com/github.com/llvm/llvm-project@09bc1e825068f314db71ee7eb32d9f93c5ac87a0/-/blob/mlir/lib/Dialect/Bufferization/Pipelines/BufferizationPipelines.cpp?L21
@@ -122,6 +121,8 @@ static void createTcpToLlvmPipeline(OpPassManager &pm) {
122121
pm.addPass(createFinalizeMemRefToLLVMConversionPass());
123122
// Convert Func to LLVM (always needed).
124123
pm.addPass(createConvertFuncToLLVMPass());
124+
// Convert CF to LLVM (always needed).
125+
pm.addPass(createConvertControlFlowToLLVMPass());
125126

126127
// Sprinkle some cleanups.
127128
pm.addPass(createCanonicalizerPass());

0 commit comments

Comments
 (0)