From 2fe0c33083646364a2cb5b34a7e857317f0ee8d7 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 15 Feb 2021 04:17:20 -0800 Subject: [PATCH] Integrate LLVM at llvm/llvm-project@16428a8d91a9 Updates LLVM usage to match [16428a8d91a9](https://github.com/llvm/llvm-project/commit/16428a8d91a9) PiperOrigin-RevId: 357550807 --- WORKSPACE | 4 ++-- build_tools/llvm_version.txt | 2 +- lib/Dialect/mhlo/transforms/legalize_to_linalg.cc | 10 ++++------ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 9f5846f..10f41db 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -15,9 +15,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -LLVM_COMMIT = "2bfe27da171e8a6dddac6c444c4bca003103941a" +LLVM_COMMIT = "16428a8d91a904c841086a971a8f26c3d8cf1307" -LLVM_SHA256 = "e94b8ec0d1b854da11dbf1587701e798df97be630f7019d0658452fae5e03bcf" +LLVM_SHA256 = "8c2f3945608365258148e7e1979810d99c676e0e750f174d92bdf2e0da549954" LLVM_BAZEL_TAG = "llvm-project-{commit}".format(commit = LLVM_COMMIT) diff --git a/build_tools/llvm_version.txt b/build_tools/llvm_version.txt index 7312638..4d41eb4 100644 --- a/build_tools/llvm_version.txt +++ b/build_tools/llvm_version.txt @@ -1,2 +1,2 @@ -2bfe27da171e8a6dddac6c444c4bca003103941a +16428a8d91a904c841086a971a8f26c3d8cf1307 diff --git a/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc b/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc index a8841f8..6cbb68c 100644 --- a/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc +++ b/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc @@ -805,9 +805,8 @@ class ReshapeOpConverter : public OpConversionPattern { loc, collapsed_type, args[0], collapsing_map); Value reshape_buffer = rewriter.create( loc, result_type, collapsed_op, expanding_map); - rewriter.replaceOpWithNewOp( - reshape_op, reshape_buffer, args[1], /*inputPermutation =*/nullptr, - /*outputPermutation =*/nullptr); + rewriter.replaceOpWithNewOp(reshape_op, reshape_buffer, + args[1]); } else { auto collapsed_type = RankedTensorType::get({total_elems}, elem_type); Value collapsed_op = rewriter.create( @@ -821,9 +820,8 @@ class ReshapeOpConverter : public OpConversionPattern { if (isLHLO) { Value reshape_buffer = rewriter.create( reshape_op.getLoc(), result_type, args[0], reassociation_map); - rewriter.replaceOpWithNewOp( - reshape_op, reshape_buffer, args[1], /*inputPermutation =*/nullptr, - /*outputPermutation =*/nullptr); + rewriter.replaceOpWithNewOp(reshape_op, reshape_buffer, + args[1]); } else { rewriter.replaceOpWithNewOp( reshape_op, result_type, args[0], reassociation_map);