Add NarrowScalar for G_TRUNC when NarrowTy is half the size of source.
NarrowScalar G_TRUNC to s32 for MIPS32.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D66202
[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.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 14 2019, 9:00 AM mstojanovic added inline comments.
Closed by commit rG5b4c5c2c54be: [MIPS GlobalISel] NarrowScalar G_TRUNC (authored by Petar.Avramovic). · Explain WhyAug 21 2019, 2:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 215052 lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/Mips/MipsLegalizerInfo.cpp
test/CodeGen/Mips/GlobalISel/legalizer/trunc.mir
test/CodeGen/Mips/GlobalISel/llvm-ir/trunc.ll
|
There's no need for a capture here.