This patch is a proposed fix for 36642.
While legalizing long vector types, make sure the smaller types get the
flags of the wider type.
Does D37686 handle this problem too?
Please add a test.
Thanks for the review. I tried to apply the patch on tip, it applies cleanly but it doesn't compile, I think it is out of date.
Test case added.
Thanks for the review!
updated test name.
LGTM, can you also make the test name a little more specific, e.g. 'vecreduce-propagate-sd-flags.ll'?
You will also need a REQUIRES: asserts since you use the -debug-only option.
committed in @327079