Remove unused function and avoid unused variable warning. NFC.
authorJacques Pienaar <jpienaar@google.com>
Mon, 13 May 2019 19:49:40 +0000 (12:49 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 20 May 2019 20:40:23 +0000 (13:40 -0700)
--

PiperOrigin-RevId: 247991231

mlir/lib/Analysis/VectorAnalysis.cpp
mlir/lib/Transforms/DmaGeneration.cpp

index 7c0176d..e1d31ad 100644 (file)
@@ -197,6 +197,7 @@ bool mlir::matcher::operatesOnSuperVectorsOf(Operation &op,
   /// TODO(ntv): there should be a single function for all ops to do this so we
   /// do not have to special case. Maybe a trait, or just a method, unclear atm.
   bool mustDivide = false;
+  (void)mustDivide;
   VectorType superVectorType;
   if (auto read = dyn_cast<VectorTransferReadOp>(op)) {
     superVectorType = read.getResultType();
index 00ae92b..6452346 100644 (file)
@@ -211,7 +211,8 @@ static bool getFullMemRefAsRegion(Operation *opInst, unsigned numParamLoopIVs,
   return true;
 }
 
-static InFlightDiagnostic emitRemarkForBlock(Block &block) {
+static InFlightDiagnostic LLVM_ATTRIBUTE_UNUSED
+emitRemarkForBlock(Block &block) {
   auto *op = block.getContainingOp();
   return op ? op->emitRemark() : block.getFunction()->emitRemark();
 }