Skip to content

Commit

Permalink
Remove fallthrough noise in adjacent cases in GraphOptimizer.cpp
Browse files Browse the repository at this point in the history
Reviewed By: khabinov, scottxu0730

Differential Revision: D48874183

fbshipit-source-id: 814a75b06cca92d3f2cf39e95bc41cdabc33ffc1
  • Loading branch information
r-barnes authored and facebook-github-bot committed Sep 1, 2023
1 parent 603b231 commit b8a45f5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/Optimizer/GraphOptimizer/GraphOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5287,32 +5287,20 @@ bool OptimizeQuantization::run(Function *F, const CompilationContext &cctx) {
bool addNewNodeToWorklist = false;
switch (RS->getInput().getNode()->getKind()) {
case Kinded::Kind::RescaleQuantizedNodeKind:
[[fallthrough]];
case Kinded::Kind::QuantizeNodeKind:
addNewNodeToWorklist = true;
[[fallthrough]];
case Kinded::Kind::SplatNodeKind:
[[fallthrough]];
case Kinded::Kind::AddNodeKind:
[[fallthrough]];
case Kinded::Kind::SubNodeKind:
[[fallthrough]];
case Kinded::Kind::MulNodeKind:
[[fallthrough]];
case Kinded::Kind::DivNodeKind:
[[fallthrough]];
case Kinded::Kind::FmodNodeKind:
[[fallthrough]];
case Kinded::Kind::MinNodeKind:
[[fallthrough]];
case Kinded::Kind::MatMulNodeKind:
[[fallthrough]];
case Kinded::Kind::ConvolutionNodeKind:
[[fallthrough]];
case Kinded::Kind::ChannelwiseQuantizedConvolutionNodeKind:
[[fallthrough]];
case Kinded::Kind::FullyConnectedNodeKind:
[[fallthrough]];
case Kinded::Kind::SparseLengthsWeightedSumNodeKind: {
changed = true;
Node *newNode =
Expand Down

0 comments on commit b8a45f5

Please sign in to comment.