Skip to content

Commit 1f1a8f8

Browse files
authored
add missing break
1 parent cab149d commit 1f1a8f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8233,6 +8233,7 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
82338233
return new FCmpInst(FCmpInst::FCMP_ULE, LHS,
82348234
ConstantFP::getInfinity(LHS->getType(), false), "",
82358235
&I);
8236+
break;
82368237
case FCmpInst::FCMP_UGT:
82378238
// fcmp ugt floor(x), x => fcmp ugt -inf, x
82388239
// fcmp ugt x, ceil(x) => fcmp ugt x, inf
@@ -8244,6 +8245,7 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
82448245
return new FCmpInst(FCmpInst::FCMP_UGT, LHS,
82458246
ConstantFP::getInfinity(LHS->getType(), false), "",
82468247
&I);
8248+
break;
82478249
case FCmpInst::FCMP_UGE:
82488250
// fcmp uge x, floor(x) => fcmp uge x, -inf
82498251
// fcmp uge ceil(x), x => fcmp uge inf, x
@@ -8255,6 +8257,7 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
82558257
return new FCmpInst(FCmpInst::FCMP_UGE,
82568258
ConstantFP::getInfinity(RHS->getType(), false), RHS,
82578259
"", &I);
8260+
break;
82588261
case FCmpInst::FCMP_ULT:
82598262
// fcmp ult x, floor(x) => fcmp ult x, -inf
82608263
// fcmp ult ceil(x), x => fcmp ult inf, x
@@ -8266,6 +8269,7 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
82668269
return new FCmpInst(FCmpInst::FCMP_ULT,
82678270
ConstantFP::getInfinity(RHS->getType(), false), RHS,
82688271
"", &I);
8272+
break;
82698273
default:
82708274
break;
82718275
}

0 commit comments

Comments
 (0)