Need to check that the minimum acceptable vector factor is at least 2,
not 0, to avoid compiler crash during gathered loads analysis.
Thanks for fixing!
|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?
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.