mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
[openacc] Remove duplicate operand from LoopOp getDataOperand (#71576)
vectorLength operand was counted twice - should only be counted once.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user