[openacc] Remove duplicate operand from LoopOp getDataOperand (#71576)

vectorLength operand was counted twice - should only be counted once.
This commit is contained in:
Razvan Lupusoru
2023-11-07 11:42:46 -08:00
committed by GitHub
parent ac4ff6168a
commit 0bb510c59d

View File

@@ -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);