[Mlir-commits] [mlir] [openacc] Remove duplicate operand from LoopOp getDataOperand (PR #71576)
Razvan Lupusoru
llvmlistbot at llvm.org
Tue Nov 7 11:23:07 PST 2023
https://github.com/razvanlupusoru created https://github.com/llvm/llvm-project/pull/71576
vectorLength operand was counted twice - should only be counted once.
>From d7533423b3e0899b47cd82b694e5d31141eef5eb Mon Sep 17 00:00:00 2001
From: Razvan Lupusoru <rlupusoru at nvidia.com>
Date: Tue, 7 Nov 2023 11:21:01 -0800
Subject: [PATCH] [openacc] Remove duplicate operand from LoopOp getDataOperand
vectorLength operand was counted twice - should only be counted
once.
---
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp | 1 -
1 file changed, 1 deletion(-)
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