Additional instructions created

Hi all,

I’ve got a few new registers and I’ve extended the pointer size to be 128 bits. For allocas, that is done by adding another SelectionDAG after FrameIndex that extends it to 128 bits. That seems to work okay, except that the final representation throws in additional instructions. For example for a piece of code such as:

int a;
int* pointer = &a;

it returns

pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
leaq -4(%rbp), %poi0
leaq -32(%rbp), %rcx
movq %rcx, %poi1
leaq -4(%rbp), %rcx
movq %rcx, %poi2
movaps %poi2, (%poi1)
bndmov %poi0, -48(%rbp) # 16-byte Folded Spill
popq %rbp

The instructions in red should not be there, otherwise, everything is fine. Does anyone know what could be causing this?