This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Implement lower for G_INTRINSIC_ROUND
ClosedPublic

Authored by arsenm on Dec 24 2019, 12:12 PM.

Details

Summary

Mostly copied from AMDGPU lowering implementation, except used
G_SITOFP instead of directly creating a select on -1.0, 0.0.

Diff Detail

Event Timeline

arsenm created this revision.Dec 24 2019, 12:12 PM
paquette accepted this revision.Jan 6 2020, 1:14 PM

LGTM

This revision is now accepted and ready to land.Jan 6 2020, 1:14 PM
arsenm closed this revision.Jan 6 2020, 2:56 PM

2ffe15f52ab6a1b03c6e68d60b796a6594679e86

llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-intrinsic-round.mir