This patch updates one specific hook in "VectorDropLeadUnitDim.cpp" to
make sure that "scalable dims" are handled correctly. While this change
affects multiple patterns, I am only adding one regression tests that
captures one specific case that affects me right now.
I am also adding Vector dialect to the list of dependencies of
-test-vector-to-vector-lowering. Otherwise my test case won't work as
a standalone test.
This could still incorrectly trim something like vector<[1]x1xi128> to vector<1xi128> as the drop_while() is not checking if the dimension is scalable.