[PATCH] D76199: GlobalISel: Fix round lowering
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 15 11:15:25 PDT 2020
arsenm created this revision.
arsenm added reviewers: sepavloff, foad, nhaehnle, kerbowa, paquette, aemerson, aditya_nandakumar.
Herald added subscribers: volkan, hiraditya, Anastasia, rovka, wdng, jvesely.
I used the implementation for floor instead of round. It also turns
out the OpenCL builtin library wasn't using the round builtin, but
implemented the expanded form.
https://reviews.llvm.org/D76199
Files:
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-intrinsic-round.mir
llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76199.250430.patch
Type: text/x-patch
Size: 93362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200315/578b70ad/attachment-0001.bin>
More information about the llvm-commits
mailing list