HomePhabricator

[AArch64][GlobalISel] Support the neg_addsub_shifted_imm32 pattern

Authored by paquette on Aug 2 2019, 11:12 AM.

Description

[AArch64][GlobalISel] Support the neg_addsub_shifted_imm32 pattern

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.

Differential Revision: https://reviews.llvm.org/D65460

llvm-svn: 367700

Details