This is an archive of the discontinued LLVM Phabricator instance.

[X86] Use X86ISD::VFPROUND instead of ISD::FP_ROUND for 256 and 512 bit cvtpd2ps intrinsics.
ClosedPublic

Authored by craig.topper on Jan 20 2019, 5:44 PM.

Details

Summary

Use X86ISD::VFPROUND in the instruction isel patterns. Add new patterns for ISD::FP_ROUND to maintain support for fptrunc in IR.

In the process I found a couple duplicate isel patterns which I also deleted in this patch.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jan 20 2019, 5:44 PM
RKSimon accepted this revision.Jan 21 2019, 4:41 AM

LGTM - thanks.

This revision is now accepted and ready to land.Jan 21 2019, 4:41 AM
This revision was automatically updated to reflect the committed changes.