[PATCH] D104809: [SLPVectorizer] Fix crash in vectorizeChainsInBlock for scalable vector.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 24 07:21:11 PDT 2021


ABataev added a comment.

I think it is better to change `buildTree_rec` function and check that if `S.getOpcode() == Instruction::ExtractElement && cast<ExtractElementInst>(S.getMainOp())->getVectorOperandType()->isScalalableVectorType()` then make it a gather node. Also, need to update `getEntryCost` function to filter out such extractelements from `isGatherShuffledEntry` function call and consider them as just simple gathers.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104809



More information about the llvm-commits mailing list