[PATCH] D113772: [Analysis] Fix getNumberOfParts to return 0 when the answer is unknown

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 06:59:41 PST 2021


david-arm added a comment.

An alternative solution to changing llvm/include/llvm/Analysis/TargetTransformInfoImpl.h would be to fix LoopVectorize.cpp so that it never calls getNumberOfParts unless we have defined a target. For example, we could just set `TypeNotScalarized` to be `true` always when there is no target specified. I wasn't sure which solution was best so I pushed this patch up for now!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113772



More information about the llvm-commits mailing list