Before, we weren't able to select things like this for G_GEP:
add x0, x8, #8
And instead we'd materialize the 8.
This teaches GISel to do that. It gives some considerable code size savings
on 252.eon-- about 4%!
Paths
| Differential D65248
[AArch64][GlobalISel] Select immediate modes for ADD when selecting G_GEP ClosedPublic Authored by paquette on Jul 24 2019, 3:42 PM.
Details Summary Before, we weren't able to select things like this for G_GEP: add x0, x8, #8 And instead we'd materialize the 8. This teaches GISel to do that. It gives some considerable code size savings
Diff Detail
Event TimelineHerald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls and 2 others. · View Herald Transcript This revision is now accepted and ready to land.Jul 24 2019, 3:59 PM Closed by commit rL366959: [AArch64][GlobalISel] Select immediate modes for ADD when selecting G_GEP (authored by paquette). · Explain WhyJul 24 2019, 4:15 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 211631 llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/trunk/test/CodeGen/AArch64/GlobalISel/select.mir
llvm/trunk/test/CodeGen/AArch64/GlobalISel/swifterror.ll
|