In CreateStackTemporary we were promoting alignments beyond the
stack alignment, which I have fixed in this patch. In addition, we
need to set the stack id explicitly for scalable vectors so that
we allocate the correct amount of stack using vscale.
I added a test to
CodeGen/AArch64/sve-insert-element.ll
that tries to insert an element into an illegal scalable vector
type that involves creating temporary stack objects.
Can you split this patch up into two patches: