X86/GlobalISel: Rely on default assignValueToReg
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 17 Apr 2021 13:30:59 +0000 (09:30 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 4 May 2021 20:36:37 +0000 (16:36 -0400)
commit6dd883477249dae1c57e07f6c4375eb90c2df297
treef15efede93badecf4f939d136cae9a94451c32ab
parent3d473ae72ea3f1bff6db6a3ebc226f3032cf530d
X86/GlobalISel: Rely on default assignValueToReg

The resulting output is semantically closer to what the DAG emits and
is more compatible with the existing CCAssignFns.

The returns of f32 in f80 are clearly broken, but they were broken
before when using G_ANYEXT to go from f32 to f80.
llvm/lib/Target/X86/X86CallLowering.cpp
llvm/test/CodeGen/X86/GlobalISel/irtranslator-callingconv.ll
llvm/test/CodeGen/X86/GlobalISel/x86_64-irtranslator-struct-return.ll
llvm/test/CodeGen/X86/GlobalISel/x86_64-irtranslator.ll