Skip to content

Commit 617948e

Browse files
committed
Simplify buildVectorSupportsSourceMods()
1 parent 1fdaea5 commit 617948e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,6 @@ static bool buildVectorSupportsSourceMods(const SDNode *N) {
726726
if (N->getValueType(0) != MVT::v2f32)
727727
return true;
728728

729-
assert(!N->use_empty());
730-
731-
for (const SDNode *U : N->users())
732-
if (U->getOpcode() != ISD::BITCAST)
733-
return true;
734-
735729
SDValue LHS = N->getOperand(0);
736730
SDValue RHS = N->getOperand(1);
737731
if (LHS->getOpcode() != ISD::SELECT || RHS->getOpcode() != ISD::SELECT)

0 commit comments

Comments
 (0)