Skip to content

Commit dea39d1

Browse files
committed
Simplify switch in BitwiseToSrcModifierOp()
1 parent b6b3726 commit dea39d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4884,20 +4884,21 @@ static SDValue BitwiseToSrcModifierOp(SDValue N,
48844884
case ISD::XOR:
48854885
if (Mask == 0x80000000u || Mask == 0x8000000000000000u)
48864886
return DAG.getNode(ISD::FNEG, SDLoc(N), FVT, BC);
4887-
return SDValue();
4887+
break;
48884888
case ISD::OR:
48894889
if (Mask == 0x80000000u || Mask == 0x8000000000000000u) {
48904890
SDValue Abs = DAG.getNode(ISD::FNEG, SDLoc(N), FVT, BC);
48914891
return DAG.getNode(ISD::FABS, SDLoc(N), FVT, Abs);
48924892
}
4893-
return SDValue();
4893+
break;
48944894
case ISD::AND:
48954895
if (Mask == 0x7fffffffu || Mask == 0x7fffffffffffffffu)
48964896
return DAG.getNode(ISD::FABS, SDLoc(N), FVT, BC);
4897-
return SDValue();
4897+
break;
48984898
default:
48994899
return SDValue();
49004900
}
4901+
return SDValue();
49014902
}
49024903

49034904
SDValue AMDGPUTargetLowering::performSelectCombine(SDNode *N,

0 commit comments

Comments
 (0)