[PATCH] D90562: [VPlan] Use VPDef for VPInterleaveRecipe.

John Brawn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 11:01:53 PST 2021


john.brawn added a comment.

This commit is causing the following

  int example(int n, int *arr)
  {
   int ret = 0;
  
   for( int i = 0; i < n; i += 2 ) {
    ret = arr[i+1] + arr[i] + ret;
   }
  
   return ret;
  }

to hit an assertion failure when compiled with --target=arm-none-eabi  -march=armv8.1-m.main+mve -O2:

  llvm-project/llvm/lib/Transforms/Vectorize/VPlan.h:1770: llvm::VPValue* llvm::VPlan::getVPValue(llvm::Value*): Assertion `Value2VPValue.count(V) && "Value does not exist in VPlan"' failed.

with the backtrace showing that the assert was hit in llvm::LoopVectorizationPlanner::adjustRecipesForInLoopReductions.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90562



More information about the llvm-commits mailing list