[Mlir-commits] [mlir] 0bb510c - [openacc] Remove duplicate operand from LoopOp getDataOperand (#71576)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Nov 7 11:42:50 PST 2023


Author: Razvan Lupusoru
Date: 2023-11-07T11:42:46-08:00
New Revision: 0bb510c59d0133dc4dc0509123fff08a689d8f23

URL: https://github.com/llvm/llvm-project/commit/0bb510c59d0133dc4dc0509123fff08a689d8f23
DIFF: https://github.com/llvm/llvm-project/commit/0bb510c59d0133dc4dc0509123fff08a689d8f23.diff

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

vectorLength operand was counted twice - should only be counted once.

Added: 
    

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

Removed: 
    


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


        


More information about the Mlir-commits mailing list