OSDN Git Service

AMDGPU/GlobalISel: Fix custom lowering of llvm.trunc.f64 for SI
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 19 Jul 2020 15:57:49 +0000 (11:57 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 20 Jul 2020 14:06:18 +0000 (10:06 -0400)
commit93311a981283775031113c5a6db0591f03357b7b
treec8a4772529f7d52b7d30870a8388cfccb09aff61
parent57aae47056d74408524ae11b052a04159c42eb9e
AMDGPU/GlobalISel: Fix custom lowering of llvm.trunc.f64 for SI

This was missing an operand from BFE and not erasing the original
instruction.
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fceil.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptosi.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptoui.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-intrinsic-round.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-intrinsic-trunc.mir