[PATCH] D68577: [LV] Apply sink-after & interleave-groups as VPlan transformations (NFC)

Richard Trieu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 20:24:00 PST 2019


rtrieu added a comment.

The recommited patch is hitting an assert.  See message and reduced test case below:

assertion failed at llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h:91 in llvm::VPRecipeBase *llvm::VPRecipeBuilder::getRecipe(llvm::Instruction *): Ingredient2Recipe[I] != nullptr && "Ingredient doesn't have a recipe"

  "clang" \
  "-cc1" \
  "-triple" "x86_64-unknown-linux-gnu" \
  "-emit-obj" \
  "-O3" \
  "-w" \
  "-vectorize-loops" \
  "-x" "c" "test.c"



  int test(int I1, int *Arr1, int *Arr2) {
    int i = 0, j = 0;
    int I2 = 0;
    
    int ret = 0;
                            
    for (i = 0; i < 5; i++) {
      if ((Arr1[i] < 5)) {
        I2 = I1;
      }
    } 
  
    for (i = 0; i < I2; i++, j++) {
      Arr2[3] = (j < I1 ? Arr1[j] : 0);
    }         
    if (j < I1) {
      ret = 1;
    }
          
    return ret;
  }  


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68577/new/

https://reviews.llvm.org/D68577





More information about the llvm-commits mailing list