@@ -4380,7 +4380,7 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
43804380 case ICmpInst::ICMP_SLT:
43814381 case ICmpInst::ICMP_SLE:
43824382 std::swap (LHS, RHS);
4383- // fall through
4383+ LLVM_FALLTHROUGH; // HLSL Change
43844384 case ICmpInst::ICMP_SGT:
43854385 case ICmpInst::ICMP_SGE:
43864386 // a >s b ? a+x : b+x -> smax(a, b)+x
@@ -4404,7 +4404,7 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
44044404 case ICmpInst::ICMP_ULT:
44054405 case ICmpInst::ICMP_ULE:
44064406 std::swap (LHS, RHS);
4407- // fall through
4407+ LLVM_FALLTHROUGH; // HLSL Change
44084408 case ICmpInst::ICMP_UGT:
44094409 case ICmpInst::ICMP_UGE:
44104410 // a >u b ? a+x : b+x -> umax(a, b)+x
@@ -4458,7 +4458,7 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
44584458 default :
44594459 break ;
44604460 }
4461- }
4461+ } break ;
44624462
44634463 default : // We cannot analyze this expression.
44644464 break ;
@@ -6696,6 +6696,7 @@ ScalarEvolution::isKnownPredicateWithRanges(ICmpInst::Predicate Pred,
66966696 llvm_unreachable (" Unexpected ICmpInst::Predicate value!" );
66976697 case ICmpInst::ICMP_SGT:
66986698 std::swap (LHS, RHS);
6699+ LLVM_FALLTHROUGH; // HLSL Change
66996700 case ICmpInst::ICMP_SLT: {
67006701 ConstantRange LHSRange = getSignedRange (LHS);
67016702 ConstantRange RHSRange = getSignedRange (RHS);
@@ -6707,6 +6708,7 @@ ScalarEvolution::isKnownPredicateWithRanges(ICmpInst::Predicate Pred,
67076708 }
67086709 case ICmpInst::ICMP_SGE:
67096710 std::swap (LHS, RHS);
6711+ LLVM_FALLTHROUGH; // HLSL Change
67106712 case ICmpInst::ICMP_SLE: {
67116713 ConstantRange LHSRange = getSignedRange (LHS);
67126714 ConstantRange RHSRange = getSignedRange (RHS);
@@ -6718,6 +6720,7 @@ ScalarEvolution::isKnownPredicateWithRanges(ICmpInst::Predicate Pred,
67186720 }
67196721 case ICmpInst::ICMP_UGT:
67206722 std::swap (LHS, RHS);
6723+ LLVM_FALLTHROUGH; // HLSL Change
67216724 case ICmpInst::ICMP_ULT: {
67226725 ConstantRange LHSRange = getUnsignedRange (LHS);
67236726 ConstantRange RHSRange = getUnsignedRange (RHS);
@@ -6729,6 +6732,7 @@ ScalarEvolution::isKnownPredicateWithRanges(ICmpInst::Predicate Pred,
67296732 }
67306733 case ICmpInst::ICMP_UGE:
67316734 std::swap (LHS, RHS);
6735+ LLVM_FALLTHROUGH; // HLSL Change
67326736 case ICmpInst::ICMP_ULE: {
67336737 ConstantRange LHSRange = getUnsignedRange (LHS);
67346738 ConstantRange RHSRange = getUnsignedRange (RHS);
@@ -7052,6 +7056,7 @@ bool ScalarEvolution::isImpliedCond(ICmpInst::Predicate Pred,
70527056 if (isImpliedCondOperands (Pred, LHS, RHS, V,
70537057 getConstant (SharperMin)))
70547058 return true ;
7059+ LLVM_FALLTHROUGH; // HLSL Change
70557060
70567061 case ICmpInst::ICMP_SGT:
70577062 case ICmpInst::ICMP_UGT:
@@ -7066,7 +7071,7 @@ bool ScalarEvolution::isImpliedCond(ICmpInst::Predicate Pred,
70667071
70677072 if (isImpliedCondOperands (Pred, LHS, RHS, V, getConstant (Min)))
70687073 return true ;
7069-
7074+ break ;
70707075 default :
70717076 // No change
70727077 break ;
@@ -7163,7 +7168,7 @@ static bool IsKnownPredicateViaMinOrMax(ScalarEvolution &SE,
71637168
71647169 case ICmpInst::ICMP_SGE:
71657170 std::swap (LHS, RHS);
7166- // fall through
7171+ LLVM_FALLTHROUGH; // HLSL Change
71677172 case ICmpInst::ICMP_SLE:
71687173 return
71697174 // min(A, ...) <= A
@@ -7173,7 +7178,7 @@ static bool IsKnownPredicateViaMinOrMax(ScalarEvolution &SE,
71737178
71747179 case ICmpInst::ICMP_UGE:
71757180 std::swap (LHS, RHS);
7176- // fall through
7181+ LLVM_FALLTHROUGH; // HLSL Change
71777182 case ICmpInst::ICMP_ULE:
71787183 return
71797184 // min(A, ...) <= A
@@ -8423,6 +8428,7 @@ ScalarEvolution::computeBlockDisposition(const SCEV *S, const BasicBlock *BB) {
84238428 return DoesNotDominateBlock;
84248429 }
84258430 // FALL THROUGH into SCEVNAryExpr handling.
8431+ LLVM_FALLTHROUGH; // HLSL Change
84268432 case scAddExpr:
84278433 case scMulExpr:
84288434 case scUMaxExpr:
0 commit comments