Skip to content

Commit

Permalink
[openacc] Remove duplicate operand from LoopOp getDataOperand (#71576)
Browse files Browse the repository at this point in the history
vectorLength operand was counted twice - should only be counted once.
  • Loading branch information
razvanlupusoru authored Nov 7, 2023
1 parent ac4ff61 commit 0bb510c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bb510c

Please sign in to comment.