]> granicus.if.org Git - llvm/commit
[X86] Fix arg copy elision for illegal types
authorReid Kleckner <rnk@google.com>
Mon, 6 Mar 2017 18:39:39 +0000 (18:39 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 6 Mar 2017 18:39:39 +0000 (18:39 +0000)
commit08e9d0ec12eb5c1dc6f58b74c5314525fe639224
treeb22a974dda2855128c95ce983928a7e4833a1dd2
parent3f631b82faaf9c506acdb34321f8083a81cc66cd
[X86] Fix arg copy elision for illegal types

Use the store size of the argument type, which will be a byte-sized
quantity, rather than dividing the size in bits by 8.

Fixes PR32136 and re-enables copy elision from i64 arguments.

Reverts the workaround in from r296950.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/arg-copy-elide.ll