diff options
author | Tim Northover <tnorthover@apple.com> | 2016-09-21 12:57:45 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-09-21 12:57:45 +0000 |
commit | 9a46718378550a33236ba73dcf6a7df31e01c27a (patch) | |
tree | b729c89df8292f04cfe57d64ad980f459a7a72ec /llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp | |
parent | 862758ec14741db27ef4594b1ba26ce5825de8a6 (diff) | |
download | bcm5719-llvm-9a46718378550a33236ba73dcf6a7df31e01c27a.tar.gz bcm5719-llvm-9a46718378550a33236ba73dcf6a7df31e01c27a.zip |
GlobalISel: produce correct code for signext/zeroext ABI flags.
We still don't really have an equivalent of "AssertXExt" in DAG, so we don't
exploit the guarantees on the receiving side yet, but this should produce
conservatively correct code on iOS ABIs.
llvm-svn: 282069
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp b/llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp index ede2bc23393..d6368b3d969 100644 --- a/llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp +++ b/llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp @@ -109,9 +109,10 @@ MachineLegalizeHelper::libcall(MachineInstr &MI) { const char *Name = TLI.getLibcallName(Size == 64 ? RTLIB::REM_F64 : RTLIB::REM_F32); - CLI.lowerCall(MIRBuilder, MachineOperand::CreateES(Name), Ty, - MI.getOperand(0).getReg(), {Ty, Ty}, - {MI.getOperand(1).getReg(), MI.getOperand(2).getReg()}); + CLI.lowerCall( + MIRBuilder, MachineOperand::CreateES(Name), + {MI.getOperand(0).getReg(), Ty}, + {{MI.getOperand(1).getReg(), Ty}, {MI.getOperand(2).getReg(), Ty}}); MI.eraseFromParent(); return Legalized; } |