From 4d15aefd2b403c6cb3208a8fd23a86c5e10b67ec Mon Sep 17 00:00:00 2001
From: Maria Kotsifakou <kotsifa2@illinois.edu>
Date: Thu, 8 Aug 2019 21:09:43 -0500
Subject: [PATCH] Removed in place checks from pool in CUDNN backend

---
 llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp b/llvm/lib/Transforms/DFG2LLVM_CUDNN/DFG2LLVM_CUDNN.cpp
index 4707313cc1..abc4e9ef89 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);
-- 
GitLab