GlobalISel: correctly handle small args via memory.
authorTim Northover <tnorthover@apple.com>
Tue, 6 Dec 2016 21:02:19 +0000 (21:02 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 6 Dec 2016 21:02:19 +0000 (21:02 +0000)
commit14ceb45fb491ea54a61efb9e32c7b1dc902fa009
treee59351582a6ecdee95e1176d534a176dd122428a
parent8bc7e4da516c7a8cd3f1067fadb9c52ee297f6f4
GlobalISel: correctly handle small args via memory.

We were rounding size in bits down rather than up, leading to 0-sized slots for
i1 (assert!) and bugs for other types not byte-aligned.

llvm-svn: 288848
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
llvm/test/CodeGen/AArch64/GlobalISel/call-translator.ll