Skip to content

Commit 4351787

Browse files
committed
AMDGPU: Fix redundant condition
Fixes #93003
1 parent f98a3dd commit 4351787

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7593,8 +7593,7 @@ static SDValue constructRetValue(SelectionDAG &DAG, MachineSDNode *Result,
75937593
? (ReqRetNumElts + 1) / 2
75947594
: ReqRetNumElts;
75957595

7596-
int MaskPopDwords = (!IsD16 || (IsD16 && Unpacked)) ?
7597-
DMaskPop : (DMaskPop + 1) / 2;
7596+
int MaskPopDwords = (!IsD16 || Unpacked) ? DMaskPop : (DMaskPop + 1) / 2;
75987597

75997598
MVT DataDwordVT = NumDataDwords == 1 ?
76007599
MVT::i32 : MVT::getVectorVT(MVT::i32, NumDataDwords);

0 commit comments

Comments
 (0)