@@ -382,11 +382,6 @@ Value *LoopIdiomVectorize::createMaskedFindMismatch(
382
382
Value *PtrA = GEPA->getPointerOperand ();
383
383
Value *PtrB = GEPB->getPointerOperand ();
384
384
385
- // At this point we know two things must be true:
386
- // 1. Start <= End
387
- // 2. ExtMaxLen <= MinPageSize due to the page checks.
388
- // Therefore, we know that we can use a 64-bit induction variable that
389
- // starts from 0 -> ExtMaxLen and it will not overflow.
390
385
ScalableVectorType *PredVTy =
391
386
ScalableVectorType::get (Builder.getInt1Ty (), ByteCompareVF);
392
387
@@ -494,11 +489,6 @@ Value *LoopIdiomVectorize::createPredicatedFindMismatch(
494
489
Value *PtrA = GEPA->getPointerOperand ();
495
490
Value *PtrB = GEPB->getPointerOperand ();
496
491
497
- // At this point we know two things must be true:
498
- // 1. Start <= End
499
- // 2. ExtMaxLen <= 4096 due to the page checks.
500
- // Therefore, we know that we can use a 64-bit induction variable that
501
- // starts from 0 -> ExtMaxLen and it will not overflow.
502
492
auto *JumpToVectorLoop = BranchInst::Create (VectorLoopStartBlock);
503
493
Builder.Insert (JumpToVectorLoop);
504
494
@@ -758,6 +748,11 @@ Value *LoopIdiomVectorize::expandFindMismatch(
758
748
// processed in each iteration, etc.
759
749
Builder.SetInsertPoint (VectorLoopPreheaderBlock);
760
750
751
+ // At this point we know two things must be true:
752
+ // 1. Start <= End
753
+ // 2. ExtMaxLen <= MinPageSize due to the page checks.
754
+ // Therefore, we know that we can use a 64-bit induction variable that
755
+ // starts from 0 -> ExtMaxLen and it will not overflow.
761
756
Value *VectorLoopRes = nullptr ;
762
757
switch (VectorizeStyle) {
763
758
case LoopIdiomVectorizeStyle::Masked:
0 commit comments