Skip to content

Commit 0e268d0

Browse files
committed
Remove single-use variables from buildVectorSupportsSourceMods()
1 parent 2c0de2f commit 0e268d0

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
@@ -731,9 +731,7 @@ static bool buildVectorSupportsSourceMods(const SDNode *N) {
731731
if (N->getValueType(0) != MVT::v2f32)
732732
return true;
733733

734-
SDValue LHS = N->getOperand(0);
735-
SDValue RHS = N->getOperand(1);
736-
if (LHS->getOpcode() != ISD::SELECT || RHS->getOpcode() != ISD::SELECT)
734+
if (N->getOperand(0) != ISD::SELECT || N->getOperand(1) != ISD::SELECT)
737735
return true;
738736

739737
return false;

0 commit comments

Comments
 (0)