From d7533423b3e0899b47cd82b694e5d31141eef5eb Mon Sep 17 00:00:00 2001 From: Razvan Lupusoru Date: Tue, 7 Nov 2023 11:21:01 -0800 Subject: [PATCH] [openacc] Remove duplicate operand from LoopOp getDataOperand vectorLength operand was counted twice - should only be counted once. --- mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp index ff2eb9ebfc42f..6e5df705fee05 100644 --- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp +++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp @@ -893,7 +893,6 @@ Value LoopOp::getDataOperand(unsigned i) { numOptional += getGangStatic() ? 1 : 0; numOptional += getVectorLength() ? 1 : 0; numOptional += getWorkerNum() ? 1 : 0; - numOptional += getVectorLength() ? 1 : 0; numOptional += getTileOperands().size(); numOptional += getCacheOperands().size(); return getOperand(numOptional + i);