[GlobalIsel][X86] Update legalization of G_ADD/G_SUB
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 2 Jun 2023 10:33:51 +0000 (11:33 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 2 Jun 2023 10:33:51 +0000 (11:33 +0100)
commita68cd636714adfa9b9245f131267b4fe5c4fec5b
tree9a95b766ab74e3c15dc7b14e62570d650833237e
parent77b18ff5cf1cb6d0f010bc4ee1e5b9273cf912bc
[GlobalIsel][X86] Update legalization of G_ADD/G_SUB

Replace the legacy legalizers for G_ADD/G_SUB with a pattern that should work for the full mixture of scalar/vector types we need to support for most opcodes.

If we can decide on this as a suitable pattern we can reuse it for the other op types, but G_ADD/G_SUB are the only ones that have decent legalizer test coverage at this stage.

Differential Revision: https://reviews.llvm.org/D151878
llvm/lib/Target/X86/X86LegalizerInfo.cpp