[PATCH] D65460: [AArch64][GlobalISel] Support the neg_addsub_shifted_imm32 pattern
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 10:09:30 PDT 2019
paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, javed.absar, rovka.
Herald added a project: LLVM.
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.
https://reviews.llvm.org/D65460
Files:
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-binop.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65460.212377.patch
Type: text/x-patch
Size: 9328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190730/33bfcd80/attachment.bin>
More information about the llvm-commits
mailing list