Skip to content

Commit 0bb510c

Browse files
[openacc] Remove duplicate operand from LoopOp getDataOperand (#71576)
vectorLength operand was counted twice - should only be counted once.
1 parent ac4ff61 commit 0bb510c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ Value LoopOp::getDataOperand(unsigned i) {
893893
numOptional += getGangStatic() ? 1 : 0;
894894
numOptional += getVectorLength() ? 1 : 0;
895895
numOptional += getWorkerNum() ? 1 : 0;
896-
numOptional += getVectorLength() ? 1 : 0;
897896
numOptional += getTileOperands().size();
898897
numOptional += getCacheOperands().size();
899898
return getOperand(numOptional + i);

0 commit comments

Comments
 (0)