Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

llvm-svn: 304312
This commit is contained in:
Galina Kistanova 2017-05-31 17:10:03 +00:00
parent adf608c4b7
commit 413e922a73

View File

@ -1,3 +1,4 @@
//===-- X86ISelLowering.cpp - X86 DAG Lowering Implementation -------------===// //===-- X86ISelLowering.cpp - X86 DAG Lowering Implementation -------------===//
// //
// The LLVM Compiler Infrastructure // The LLVM Compiler Infrastructure
@ -16298,6 +16299,7 @@ SDValue X86TargetLowering::EmitTest(SDValue Op, unsigned X86CC, const SDLoc &dl,
case ISD::SHL: case ISD::SHL:
if (Op.getNode()->getFlags().hasNoSignedWrap()) if (Op.getNode()->getFlags().hasNoSignedWrap())
break; break;
LLVM_FALLTHROUGH;
default: default:
NeedOF = true; NeedOF = true;
break; break;
@ -17161,17 +17163,17 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
switch (SetCCOpcode) { switch (SetCCOpcode) {
default: llvm_unreachable("Unexpected SETCC condition"); default: llvm_unreachable("Unexpected SETCC condition");
case ISD::SETNE: Invert = true; case ISD::SETNE: Invert = true; LLVM_FALLTHROUGH;
case ISD::SETEQ: Opc = X86ISD::PCMPEQ; break; case ISD::SETEQ: Opc = X86ISD::PCMPEQ; break;
case ISD::SETLT: Swap = true; case ISD::SETLT: Swap = true; LLVM_FALLTHROUGH;
case ISD::SETGT: Opc = X86ISD::PCMPGT; break; case ISD::SETGT: Opc = X86ISD::PCMPGT; break;
case ISD::SETGE: Swap = true; case ISD::SETGE: Swap = true; LLVM_FALLTHROUGH;
case ISD::SETLE: Opc = X86ISD::PCMPGT; case ISD::SETLE: Opc = X86ISD::PCMPGT;
Invert = true; break; Invert = true; break;
case ISD::SETULT: Swap = true; case ISD::SETULT: Swap = true; LLVM_FALLTHROUGH;
case ISD::SETUGT: Opc = X86ISD::PCMPGT; case ISD::SETUGT: Opc = X86ISD::PCMPGT;
FlipSigns = true; break; FlipSigns = true; break;
case ISD::SETUGE: Swap = true; case ISD::SETUGE: Swap = true; LLVM_FALLTHROUGH;
case ISD::SETULE: Opc = X86ISD::PCMPGT; case ISD::SETULE: Opc = X86ISD::PCMPGT;
FlipSigns = true; Invert = true; break; FlipSigns = true; Invert = true; break;
} }
@ -29938,6 +29940,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG,
// Converting this to a min would handle both negative zeros and NaNs // Converting this to a min would handle both negative zeros and NaNs
// incorrectly, but we can swap the operands to fix both. // incorrectly, but we can swap the operands to fix both.
std::swap(LHS, RHS); std::swap(LHS, RHS);
LLVM_FALLTHROUGH;
case ISD::SETOLT: case ISD::SETOLT:
case ISD::SETLT: case ISD::SETLT:
case ISD::SETLE: case ISD::SETLE:
@ -29968,6 +29971,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG,
// Converting this to a max would handle both negative zeros and NaNs // Converting this to a max would handle both negative zeros and NaNs
// incorrectly, but we can swap the operands to fix both. // incorrectly, but we can swap the operands to fix both.
std::swap(LHS, RHS); std::swap(LHS, RHS);
LLVM_FALLTHROUGH;
case ISD::SETOGT: case ISD::SETOGT:
case ISD::SETGT: case ISD::SETGT:
case ISD::SETGE: case ISD::SETGE:
@ -30002,6 +30006,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG,
// Converting this to a min would handle both negative zeros and NaNs // Converting this to a min would handle both negative zeros and NaNs
// incorrectly, but we can swap the operands to fix both. // incorrectly, but we can swap the operands to fix both.
std::swap(LHS, RHS); std::swap(LHS, RHS);
LLVM_FALLTHROUGH;
case ISD::SETOGT: case ISD::SETOGT:
case ISD::SETGT: case ISD::SETGT:
case ISD::SETGE: case ISD::SETGE:
@ -30030,6 +30035,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG,
// Converting this to a max would handle both negative zeros and NaNs // Converting this to a max would handle both negative zeros and NaNs
// incorrectly, but we can swap the operands to fix both. // incorrectly, but we can swap the operands to fix both.
std::swap(LHS, RHS); std::swap(LHS, RHS);
LLVM_FALLTHROUGH;
case ISD::SETOLT: case ISD::SETOLT:
case ISD::SETLT: case ISD::SETLT:
case ISD::SETLE: case ISD::SETLE:
@ -35432,6 +35438,7 @@ TargetLowering::ConstraintWeight
switch (*constraint) { switch (*constraint) {
default: default:
weight = TargetLowering::getSingleConstraintMatchWeight(info, constraint); weight = TargetLowering::getSingleConstraintMatchWeight(info, constraint);
LLVM_FALLTHROUGH;
case 'R': case 'R':
case 'q': case 'q':
case 'Q': case 'Q':
@ -35783,6 +35790,7 @@ X86TargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
return std::make_pair(0U, &X86::GR64RegClass); return std::make_pair(0U, &X86::GR64RegClass);
break; break;
} }
LLVM_FALLTHROUGH;
// 32-bit fallthrough // 32-bit fallthrough
case 'Q': // Q_REGS case 'Q': // Q_REGS
if (VT == MVT::i32 || VT == MVT::f32) if (VT == MVT::i32 || VT == MVT::f32)