This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] Lower uitofp
ClosedPublic

Authored by Petar.Avramovic on Aug 29 2019, 1:02 AM.

Details

Summary

Add custom lowering for G_UITOFP for MIPS32.

Diff Detail

Repository
rL LLVM

Event Timeline

Algorithm is similar to the one SDAG uses in SelectionDAGLegalize::ExpandLegalINT_TO_FP
The difference is that here we use BuildPair instead of sequence of two i32 stores followed by f64 load since it results in one instruction less.

This revision is now accepted and ready to land.Aug 29 2019, 6:54 AM
This revision was automatically updated to reflect the committed changes.