Skip to content

Commit 0ada80b

Browse files
committed
Remove single-use variables from buildVectorSupportsSourceMods()
1 parent 1d3f754 commit 0ada80b

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

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

738736
return false;

0 commit comments

Comments
 (0)