Add an equivalent ComplexRendererFns function for SelectNegArithImmed. This allows us to select immediate adds of -1 by turning them into subtracts.
Update select-binop.mir to show that the pattern works.
Paths
| Differential D65460
[AArch64][GlobalISel] Support the neg_addsub_shifted_imm32 pattern ClosedPublic Authored by paquette on Jul 30 2019, 10:07 AM.
Details Summary Add an equivalent ComplexRendererFns function for SelectNegArithImmed. This allows us to select immediate adds of -1 by turning them into subtracts. Update select-binop.mir to show that the pattern works.
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.Aug 2 2019, 9:44 AM Closed by commit rL367700: [AArch64][GlobalISel] Support the neg_addsub_shifted_imm32 pattern (authored by paquette). · Explain WhyAug 2 2019, 11:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 213093 llvm/trunk/lib/Target/AArch64/AArch64InstrFormats.td
llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/trunk/test/CodeGen/AArch64/GlobalISel/select-binop.mir
|