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

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 15 14:28:57 PST 2021


efriedma added a comment.

Given that TargetLoweringBase::getTypeLegalizationCost() can currently fail, I guess this patch makes sense.  Long-term, I'm not sure we want it to fail in cases like this, but we don't need to deal with that right now.

The commit message should probably mention TypeScalarizeScalableVector somewhere.


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