Skip to content

Commit 4ade430

Browse files
authored
[COVERITY] Remove logically dead code (#4501)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 565808e commit 4ade430

File tree

1 file changed

+2
-2
lines changed
  • third_party/intel/lib/Dialect/TritonIntelGPU/IR

1 file changed

+2
-2
lines changed

third_party/intel/lib/Dialect/TritonIntelGPU/IR/Dialect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,9 @@ SmallVector<unsigned, 3> Subgroup2DBlockEncodingAttr::getInstrShapeForLayout(
721721
const bool isOperandA = opIdx == 0;
722722
const unsigned dimOuter = bool(opIdx) ? rank - 1 : rank - 2;
723723
unsigned dpasOperandsPerTileX =
724-
isOperandA ? repCluster[dimOuter] : numReps[unsigned(opIdx) ? 1 : 2];
724+
isOperandA ? repCluster[dimOuter] : numReps[1];
725725
unsigned dpasOperandsPerTileY =
726-
isOperandA ? numReps[unsigned(opIdx) ? 1 : 2] : repCluster[dimOuter];
726+
isOperandA ? numReps[2] : repCluster[dimOuter];
727727

728728
if (isTransposeRequired) {
729729
std::swap(tileWidth, tileHeight);

0 commit comments

Comments
 (0)