Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit d2a98e0

Browse files
author
Krzysztof Parzyszek
committed
[Hexagon] Prettify code in HexagonDAGToDAGISel::Select
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296187 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5d1e915 commit d2a98e0

File tree

1 file changed

+13
-47
lines changed

1 file changed

+13
-47
lines changed

lib/Target/Hexagon/HexagonISelDAGToDAG.cpp

Lines changed: 13 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -932,55 +932,21 @@ void HexagonDAGToDAGISel::SelectBitcast(SDNode *N) {
932932

933933

934934
void HexagonDAGToDAGISel::Select(SDNode *N) {
935-
if (N->isMachineOpcode()) {
936-
N->setNodeId(-1);
937-
return; // Already selected.
938-
}
935+
if (N->isMachineOpcode())
936+
return N->setNodeId(-1); // Already selected.
939937

940938
switch (N->getOpcode()) {
941-
case ISD::Constant:
942-
SelectConstant(N);
943-
return;
944-
945-
case ISD::ConstantFP:
946-
SelectConstantFP(N);
947-
return;
948-
949-
case ISD::FrameIndex:
950-
SelectFrameIndex(N);
951-
return;
952-
953-
case ISD::BITCAST:
954-
SelectBitcast(N);
955-
return;
956-
957-
case ISD::SHL:
958-
SelectSHL(N);
959-
return;
960-
961-
case ISD::LOAD:
962-
SelectLoad(N);
963-
return;
964-
965-
case ISD::STORE:
966-
SelectStore(N);
967-
return;
968-
969-
case ISD::MUL:
970-
SelectMul(N);
971-
return;
972-
973-
case ISD::ZERO_EXTEND:
974-
SelectZeroExtend(N);
975-
return;
976-
977-
case ISD::INTRINSIC_W_CHAIN:
978-
SelectIntrinsicWChain(N);
979-
return;
980-
981-
case ISD::INTRINSIC_WO_CHAIN:
982-
SelectIntrinsicWOChain(N);
983-
return;
939+
case ISD::Constant: return SelectConstant(N);
940+
case ISD::ConstantFP: return SelectConstantFP(N);
941+
case ISD::FrameIndex: return SelectFrameIndex(N);
942+
case ISD::BITCAST: return SelectBitcast(N);
943+
case ISD::SHL: return SelectSHL(N);
944+
case ISD::LOAD: return SelectLoad(N);
945+
case ISD::STORE: return SelectStore(N);
946+
case ISD::MUL: return SelectMul(N);
947+
case ISD::ZERO_EXTEND: return SelectZeroExtend(N);
948+
case ISD::INTRINSIC_W_CHAIN: return SelectIntrinsicWChain(N);
949+
case ISD::INTRINSIC_WO_CHAIN: return SelectIntrinsicWOChain(N);
984950
}
985951

986952
SelectCode(N);

0 commit comments

Comments
 (0)