[all-commits] [llvm/llvm-project] 655d85: [SROA] `isVectorPromotionViable()`: avoid allowing...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Tue Nov 22 16:23:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 655d85732536648803612814159c897c15469e47
      https://github.com/llvm/llvm-project/commit/655d85732536648803612814159c897c15469e47
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-11-23 (Wed, 23 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/basictest.ll

  Log Message:
  -----------
  [SROA] `isVectorPromotionViable()`: avoid allowing overly large vectors

Otherwise, `compiler-rt/test/asan/TestCases/pr33372.cpp` fails with an assertion:
```
clang-16: /repositories/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:11988: void llvm::SelectionDAG::createOperands(llvm::SDNode *, ArrayRef<llvm::SDValue>): Assertion `SDNode::getMaxNumOperands() >= Vals.size() && "too many operands to fit into SDNode"' failed.
```
I'm not sure if this should be even more conservative,
or if we have a named constant for this in middle-end.




More information about the All-commits mailing list