[all-commits] [llvm/llvm-project] a68cd6: [GlobalIsel][X86] Update legalization of G_ADD/G_SUB

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jun 2 03:35:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a68cd636714adfa9b9245f131267b4fe5c4fec5b
      https://github.com/llvm/llvm-project/commit/a68cd636714adfa9b9245f131267b4fe5c4fec5b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86LegalizerInfo.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list