Skip to content

Commit 3a2870e

Browse files
committed
Remove single-use variables from buildVectorSupportsSourceMods()
1 parent d4a9fb6 commit 3a2870e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

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

729-
SDValue LHS = N->getOperand(0);
730-
SDValue RHS = N->getOperand(1);
731-
if (LHS->getOpcode() != ISD::SELECT || RHS->getOpcode() != ISD::SELECT)
729+
if (N->getOperand(0) != ISD::SELECT || N->getOperand(1) != ISD::SELECT)
732730
return true;
733731

734732
return false;

0 commit comments

Comments
 (0)