X86/GlobalISel: Use generic version of splitToValueTypes
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 28 Feb 2021 16:35:37 +0000 (11:35 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 5 May 2021 21:35:02 +0000 (17:35 -0400)
commit23ae35e858da37c753b8efaac965046358ec3818
tree89366d4f4a7ce10daf78bca00117b3ec8b888114
parentfa0b93b5a0866aad3ce517daab6cd91cc67823ad
X86/GlobalISel: Use generic version of splitToValueTypes

The custom insert of an unmerge and the callback weirdness should be
unnecessary. Since handleAssignments should now use
getRegisterTypeForCalling conv as SelectionDAG builder would, this
should now just be able to use the generic code. X86-32 relies on the
generated CCAssignFns not seeing illegal types and sharing code with
x86_64, so i64 values would incorrectly be assigned to 64-bit
registers.
llvm/lib/Target/X86/X86CallLowering.cpp
llvm/lib/Target/X86/X86CallLowering.h
llvm/test/CodeGen/X86/GlobalISel/irtranslator-callingconv.ll