Remove non-needed includes from ConvertControlFlowToCFG.cpp (NFC)
authorMehdi Amini <aminim@google.com>
Sun, 4 Aug 2019 17:58:48 +0000 (10:58 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Sun, 4 Aug 2019 17:59:18 +0000 (10:59 -0700)
The includes related to the LLVM dialect are not used in this file and
introduce an implicit dependencies between the two libraries which isn't
reflected in the CMakeLists.txt, causing non-deterministic build failures.

PiperOrigin-RevId: 261576935

mlir/lib/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.cpp

index c280ed9..c37decf 100644 (file)
@@ -26,7 +26,6 @@
 #include "mlir/IR/MLIRContext.h"
 #include "mlir/IR/Module.h"
 #include "mlir/IR/PatternMatch.h"
-#include "mlir/LLVMIR/LLVMDialect.h"
 #include "mlir/Pass/Pass.h"
 #include "mlir/StandardOps/Ops.h"
 #include "mlir/Support/Functional.h"
 #include "mlir/Transforms/Passes.h"
 #include "mlir/Transforms/Utils.h"
 
-#include "llvm/IR/DerivedTypes.h"
-#include "llvm/IR/IRBuilder.h"
-#include "llvm/IR/Type.h"
-
 using namespace mlir;
 using namespace mlir::loop;