Skip to content

Commit ede00b0

Browse files
committed
Remove dead code
1 parent e0f517f commit ede00b0

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5366,23 +5366,8 @@ SDValue AMDGPUTargetLowering::performFNegCombine(SDNode *N,
53665366
}
53675367
case ISD::SELECT: {
53685368
// fneg (select c, a, b) -> select c, (fneg a), (fneg b)
5369-
// This combine became necessary recently to prevent a regression in
5370-
// fneg-modifier-casting.ll caused by this patch legalising v2i32 xor.
5371-
// Specifically, additional instructions were added to the final codegen.
5372-
// When adding this combine a case was added to performFNEGCombine to
5373-
// prevent this combine from being undone under certain conditions.
53745369
// TODO: Invert conditions of foldFreeOpFromSelect
5375-
SDValue Cond = N0.getOperand(0);
5376-
SDValue LHS = N0.getOperand(1);
5377-
SDValue RHS = N0.getOperand(2);
5378-
EVT VT = LHS.getValueType();
5379-
if (VT != MVT::i32)
5380-
return SDValue();
5381-
5382-
SDValue LFNeg = DAG.getNode(ISD::FNEG, SL, VT, LHS);
5383-
SDValue RFNeg = DAG.getNode(ISD::FNEG, SL, VT, RHS);
5384-
SDValue Op = DAG.getNode(Opc, SL, VT, Cond, LFNeg, RFNeg);
5385-
return Op;
5370+
return SDValue();
53865371
}
53875372
case ISD::BITCAST: {
53885373
SDLoc SL(N);

0 commit comments

Comments
 (0)