This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] NarrowScalar G_TRUNC
ClosedPublic

Authored by Petar.Avramovic on Aug 14 2019, 1:49 AM.

Details

Summary

Add NarrowScalar for G_TRUNC when NarrowTy is half the size of source.
NarrowScalar G_TRUNC to s32 for MIPS32.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2019, 1:49 AM
This revision is now accepted and ready to land.Aug 14 2019, 9:00 AM
mstojanovic added inline comments.
lib/Target/Mips/MipsLegalizerInfo.cpp
58 ↗(On Diff #215052)

There's no need for a capture here.

Removed capture by value in lambda.

Petar.Avramovic marked an inline comment as done.Aug 19 2019, 3:54 AM
This revision was automatically updated to reflect the committed changes.