@@ -566,7 +566,7 @@ class InnerLoopVectorizer {
566
566
567
567
// / Set up the values of the IVs correctly when exiting the vector loop.
568
568
void fixupIVUsers (PHINode *OrigPhi, const InductionDescriptor &II,
569
- Value *CountRoundDown , Value *EndValue,
569
+ Value *VectorTripCount , Value *EndValue,
570
570
BasicBlock *MiddleBlock, BasicBlock *VectorHeader);
571
571
572
572
// / Handle all cross-iteration phis in the header.
@@ -3153,10 +3153,10 @@ void InnerLoopVectorizer::createInductionResumeValues(
3153
3153
Type *StepType = II.getStep ()->getType ();
3154
3154
Instruction::CastOps CastOp =
3155
3155
CastInst::getCastOpcode (VectorTripCount, true , StepType, true );
3156
- Value *CRD = B.CreateCast (CastOp, VectorTripCount, StepType, " cast.crd " );
3156
+ Value *VTC = B.CreateCast (CastOp, VectorTripCount, StepType, " cast.vtc " );
3157
3157
Value *Step =
3158
3158
CreateStepValue (II.getStep (), *PSE.getSE (), &*B.GetInsertPoint ());
3159
- EndValue = emitTransformedIndex (B, CRD , II.getStartValue (), Step, II);
3159
+ EndValue = emitTransformedIndex (B, VTC , II.getStartValue (), Step, II);
3160
3160
EndValue->setName (" ind.end" );
3161
3161
3162
3162
// Compute the end value for the additional bypass (if applicable).
@@ -3166,10 +3166,10 @@ void InnerLoopVectorizer::createInductionResumeValues(
3166
3166
StepType, true );
3167
3167
Value *Step =
3168
3168
CreateStepValue (II.getStep (), *PSE.getSE (), &*B.GetInsertPoint ());
3169
- CRD =
3170
- B.CreateCast (CastOp, AdditionalBypass.second , StepType, " cast.crd " );
3169
+ VTC =
3170
+ B.CreateCast (CastOp, AdditionalBypass.second , StepType, " cast.vtc " );
3171
3171
EndValueFromAdditionalBypass =
3172
- emitTransformedIndex (B, CRD , II.getStartValue (), Step, II);
3172
+ emitTransformedIndex (B, VTC , II.getStartValue (), Step, II);
3173
3173
EndValueFromAdditionalBypass->setName (" ind.end" );
3174
3174
}
3175
3175
}
@@ -3304,7 +3304,7 @@ InnerLoopVectorizer::createVectorizedLoopSkeleton() {
3304
3304
// value for the IV when arriving directly from the middle block.
3305
3305
void InnerLoopVectorizer::fixupIVUsers (PHINode *OrigPhi,
3306
3306
const InductionDescriptor &II,
3307
- Value *CountRoundDown , Value *EndValue,
3307
+ Value *VectorTripCount , Value *EndValue,
3308
3308
BasicBlock *MiddleBlock,
3309
3309
BasicBlock *VectorHeader) {
3310
3310
// There are two kinds of external IV usages - those that use the value
@@ -3342,7 +3342,7 @@ void InnerLoopVectorizer::fixupIVUsers(PHINode *OrigPhi,
3342
3342
B.setFastMathFlags (II.getInductionBinOp ()->getFastMathFlags ());
3343
3343
3344
3344
Value *CountMinusOne = B.CreateSub (
3345
- CountRoundDown , ConstantInt::get (CountRoundDown ->getType (), 1 ));
3345
+ VectorTripCount , ConstantInt::get (VectorTripCount ->getType (), 1 ));
3346
3346
Value *CMO =
3347
3347
!II.getStep ()->getType ()->isIntegerTy ()
3348
3348
? B.CreateCast (Instruction::SIToFP, CountMinusOne,
@@ -7759,8 +7759,7 @@ EpilogueVectorizerMainLoop::createEpilogueVectorizedLoopSkeleton() {
7759
7759
emitMinimumIterationCountCheck (LoopScalarPreHeader, false );
7760
7760
7761
7761
// Generate the induction variable.
7762
- Value *CountRoundDown = getOrCreateVectorTripCount (LoopVectorPreHeader);
7763
- EPI.VectorTripCount = CountRoundDown;
7762
+ EPI.VectorTripCount = getOrCreateVectorTripCount (LoopVectorPreHeader);
7764
7763
7765
7764
// Skip induction resume value creation here because they will be created in
7766
7765
// the second pass. If we created them here, they wouldn't be used anyway,
0 commit comments