[MLIR] Remove Affine->STD and SCF->STD patterns from lhlo->llvm pass.

PiperOrigin-RevId: 325219360
This commit is contained in:
Alexander Belyaev 2020-08-06 06:39:01 -07:00 committed by Geoffrey Martin-Noble
parent 701312720c
commit bc3293a05f
2 changed files with 1 additions and 5 deletions

View File

@ -15,8 +15,6 @@ limitations under the License.
#include "mlir-hlo/Dialect/mhlo/IR/lhlo_ops.h"
#include "mlir-hlo/Dialect/mhlo/transforms/rewriters.h"
#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
#include "mlir/Conversion/SCFToStandard/SCFToStandard.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
@ -39,8 +37,6 @@ class TestLhloToLLVMPass
LLVMTypeConverter converter(&getContext());
populateStdToLLVMConversionPatterns(converter, patterns);
PopulateLhloToLLVMConversionPatterns(&converter, &patterns);
populateLoopToStdConversionPatterns(patterns, &getContext());
populateAffineToStdConversionPatterns(patterns, &getContext());
ConversionTarget target(getContext());
target.addLegalDialect<LLVM::LLVMDialect>();

View File

@ -1,4 +1,4 @@
// RUN: mlir-hlo-opt %s --test-lhlo-legalize-to-llvm -split-input-file | FileCheck %s
// RUN: mlir-hlo-opt %s -lower-affine -convert-scf-to-std -test-lhlo-legalize-to-llvm -split-input-file | FileCheck %s
// CHECK-LABEL: func @static_memref_cast
func @static_memref_cast(%buf : memref<10x1x5xf32>) {