diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp index ff2eb9ebfc42f5..6e5df705fee05d 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);