Skip to content

Commit

Permalink
[VPlan] Reorder cases in switch (NFC).
Browse files Browse the repository at this point in the history
Reorder cases to make sure they are ordered properly in preparation
for D149081.
  • Loading branch information
fhahn committed May 4, 2023
1 parent 2e16e41 commit 1b05e74
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ bool VPRecipeBase::mayWriteToMemory() const {
case VPScalarIVStepsSC:
case VPPredInstPHISC:
return false;
case VPWidenIntOrFpInductionSC:
case VPBlendSC:
case VPReductionSC:
case VPWidenCanonicalIVSC:
case VPWidenGEPSC:
case VPWidenIntOrFpInductionSC:
case VPWidenPHISC:
case VPBlendSC:
case VPWidenSC:
case VPWidenGEPSC:
case VPReductionSC:
case VPWidenSelectSC: {
const Instruction *I =
dyn_cast_or_null<Instruction>(getVPSingleValue()->getUnderlyingValue());
Expand All @@ -87,13 +87,13 @@ bool VPRecipeBase::mayReadFromMemory() const {
case VPScalarIVStepsSC:
case VPPredInstPHISC:
return false;
case VPWidenIntOrFpInductionSC:
case VPBlendSC:
case VPReductionSC:
case VPWidenCanonicalIVSC:
case VPWidenGEPSC:
case VPWidenIntOrFpInductionSC:
case VPWidenPHISC:
case VPBlendSC:
case VPWidenSC:
case VPWidenGEPSC:
case VPReductionSC:
case VPWidenSelectSC: {
const Instruction *I =
dyn_cast_or_null<Instruction>(getVPSingleValue()->getUnderlyingValue());
Expand Down Expand Up @@ -123,17 +123,17 @@ bool VPRecipeBase::mayHaveSideEffects() const {
case VPWidenCallSC:
return cast<Instruction>(getVPSingleValue()->getUnderlyingValue())
->mayHaveSideEffects();
case VPWidenIntOrFpInductionSC:
case VPBlendSC:
case VPFirstOrderRecurrencePHISC:
case VPWidenPointerInductionSC:
case VPReductionSC:
case VPScalarIVStepsSC:
case VPWidenCanonicalIVSC:
case VPWidenGEPSC:
case VPWidenIntOrFpInductionSC:
case VPWidenPHISC:
case VPBlendSC:
case VPWidenPointerInductionSC:
case VPWidenSC:
case VPWidenGEPSC:
case VPReductionSC:
case VPWidenSelectSC:
case VPScalarIVStepsSC: {
case VPWidenSelectSC: {
const Instruction *I =
dyn_cast_or_null<Instruction>(getVPSingleValue()->getUnderlyingValue());
(void)I;
Expand Down

0 comments on commit 1b05e74

Please sign in to comment.