Page MenuHomePhabricator

[AArch64][GlobalISel] Support the neg_addsub_shifted_imm32 pattern
ClosedPublic

Authored by paquette on Tue, Jul 30, 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

Repository
rL LLVM

Event Timeline

paquette created this revision.Tue, Jul 30, 10:07 AM
aemerson accepted this revision.Fri, Aug 2, 9:44 AM

LGTM.

This revision is now accepted and ready to land.Fri, Aug 2, 9:44 AM
This revision was automatically updated to reflect the committed changes.