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

llvm-svn: 304636
This commit is contained in:
Galina Kistanova
2017-06-03 05:18:46 +00:00
parent bd79f73f02
commit 96d51f5bcb
2 changed files with 3 additions and 0 deletions

View File

@@ -4779,6 +4779,7 @@ void InnerLoopVectorizer::vectorizeInstruction(Instruction &I) {
scalarizeInstruction(&I, true);
break;
}
LLVM_FALLTHROUGH;
case Instruction::Add:
case Instruction::FAdd:
case Instruction::Sub:
@@ -7396,6 +7397,7 @@ unsigned LoopVectorizationCostModel::getInstructionCost(Instruction *I,
// likely.
return Cost / getReciprocalPredBlockProb();
}
LLVM_FALLTHROUGH;
case Instruction::Add:
case Instruction::FAdd:
case Instruction::Sub: