This is an archive of the discontinued LLVM Phabricator instance.

[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

Repository
rL LLVM

Event Timeline

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

LGTM.

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