Remove unused function and avoid unused variable warning. NFC.

--

PiperOrigin-RevId: 247991231
This commit is contained in:
Jacques Pienaar 2019-05-13 12:49:40 -07:00 committed by Mehdi Amini
parent bc5c7378b2
commit c82e1da268
2 changed files with 3 additions and 1 deletions

View 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();

View 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();
}