Need to check that the minimum acceptable vector factor is at least 2,
not 0, to avoid compiler crash during gathered loads analysis.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for fixing!
llvm/test/Transforms/SLPVectorizer/AArch64/loads-gather-crash.ll | ||
---|---|---|
4 ↗ | (On Diff #362724) | Could you name the test to something more descriptive, e.g. gather-load-min-required-vf-2.ll (feel free to come up with something better) and also add a comment explaining why the code should not be slp-vectorized? |
Comment Actions
Code changes LGTM. No test changes in the updated revision though?
Note that there's a new bugzilla report that has another potential test example for this bug:
https://llvm.org/PR51275
Comment Actions
Ok - I saw the earlier request about adding a comment, and the file name changed, so maybe that’s enough. I didn’t try to reduce the example from bugzilla, but that shows it is possible to induce from legitimate C source code.
Similar logic...