OSDN Git Service

[GISel]: Fix generation of illegal COPYs during CallLowering
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 9 Oct 2017 20:07:43 +0000 (20:07 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 9 Oct 2017 20:07:43 +0000 (20:07 +0000)
commitfa480807151cef492e91188e82af7f890e73048e
treeeaa822d513a1c5c4c072a7f4af17d5fb4a375d04
parent3444540e65f7217363c9bd8452c4957b2e14514a
[GISel]: Fix generation of illegal COPYs during CallLowering

We end up creating COPY's that are either truncating/extending and this
should be illegal.

https://reviews.llvm.org/D37640

Patch for X86 and ARM by igorb, rovka

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315240 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/CodeGen/GlobalISel/CallLowering.cpp
lib/Target/AArch64/AArch64CallLowering.cpp
lib/Target/ARM/ARMCallLowering.cpp
lib/Target/X86/X86CallLowering.cpp
test/CodeGen/AArch64/GlobalISel/arm64-callingconv.ll
test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
test/CodeGen/AArch64/GlobalISel/call-translator.ll
test/CodeGen/ARM/GlobalISel/arm-irtranslator.ll
test/CodeGen/X86/GlobalISel/add-scalar.ll
test/CodeGen/X86/GlobalISel/callingconv.ll
test/CodeGen/X86/GlobalISel/ext-x86-64.ll
test/CodeGen/X86/GlobalISel/irtranslator-callingconv.ll