[all-commits] [llvm/llvm-project] c64f5d: [X86] Attempt to fold EFLAGS into X86ISD::ADD/SUB ops

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue May 17 02:59:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c64f5d44ad3bebeaccceb20b2730b4e65bb87297
      https://github.com/llvm/llvm-project/commit/c64f5d44ad3bebeaccceb20b2730b4e65bb87297
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-05-17 (Tue, 17 May 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/add-sub-bool.ll
    M llvm/test/CodeGen/X86/addcarry.ll
    M llvm/test/CodeGen/X86/combine-sbb.ll
    M llvm/test/CodeGen/X86/subcarry.ll

  Log Message:
  -----------
  [X86] Attempt to fold EFLAGS into X86ISD::ADD/SUB ops

We already use combineAddOrSubToADCOrSBB to fold extended EFLAGS results into ISD::ADD/SUB ops as X86ISD::ADC/SBB carry ops.

This patch extends this to also try to fold EFLAGS results with X86ISD::ADD/SUB ops

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




More information about the All-commits mailing list