[VectorCombine] move load safety checks to helper function; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 2 Nov 2022 21:10:20 +0000 (17:10 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 4 Nov 2022 14:39:37 +0000 (10:39 -0400)
commit710e34e1360710275662ad5b0bdc394570fb26d5
tree66e96aeff4a45ab2bc48004d59284a372176f8b8
parent5f87a892a7bed9cb0599573b9aaf387bc1df9c14
[VectorCombine] move load safety checks to helper function; NFC

These checks can be re-used with other potential transforms
such as a load of a subvector-insert.
llvm/lib/Transforms/Vectorize/VectorCombine.cpp