diff --git a/llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp b/llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp index 4707313cc143c92dd0cfc060ee2a3d67a9e1b677..abc4e9ef895ca853caae92cf517c3b5536d52d5a 100644 --- a/llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp +++ b/llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp @@ -426,15 +426,6 @@ void CGT_CUDNN::codeGen(DFLeafNode* N) { case Intrinsic::visc_tensor_pool_mean: { /* llvm.visc.tensor.relu */ DEBUG(errs() << F_cudnn->getName() << "\t: Handling tensor_pool_max\n"); - // Tensor relu(a) is in place for argument a. - Value *Op = II->getOperand(0); - - // Test the intrinsic operand for in place operation. - bool inplace = isValidOperandForInPlaceOperation(Op, F_cudnn, N); - // Code generation cannot continue if this is false, because the target - // only provides an in place operation - assert(inplace && - "Operand not valid for in place operation. Code gen aborted.\n"); // Argument list - tensorPooling(input, poolFunction, window_height, window_width, vertical_pad, horizontal_pad, // vertical_stride, horizontal_stride);