X86ISelLowering: Only perform copy elision on legal types.
authorMatthias Braun <matze@braunis.de>
Sat, 4 Mar 2017 01:40:40 +0000 (01:40 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 4 Mar 2017 01:40:40 +0000 (01:40 +0000)
commit21f340fd2550e2407fdd80ed533bf69b2ad1d3dd
tree410c568508b803e00fd76dd922d4b808cd96a8ca
parentf0bb90b126de850f21655c6a175b2a58ca6c7e1a
X86ISelLowering: Only perform copy elision on legal types.

This fixes cases where i1 types were not properly legalized yet and lead
to the creating of 0-sized stack slots.

This fixes http://llvm.org/PR32136

llvm-svn: 296950
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/arg-copy-elide.ll