[all-commits] [llvm/llvm-project] 9119ee: [X86] Add cheapX86FSETCC_SSE helper. NFC.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Mar 8 10:09:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9119eefe5fe513f188f8a2b8d5346ac0ce72d3f3
      https://github.com/llvm/llvm-project/commit/9119eefe5fe513f188f8a2b8d5346ac0ce72d3f3
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

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

  Log Message:
  -----------
  [X86] Add cheapX86FSETCC_SSE helper. NFC.

Identify FP CondCode that can be performed by a non-AVX SSE CMP op

Pulled out of D121210


  Commit: e4ab2024a65a2233d258fc3377bd6c84376376aa
      https://github.com/llvm/llvm-project/commit/e4ab2024a65a2233d258fc3377bd6c84376376aa
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/fcmp-logic.ll
    M llvm/test/CodeGen/X86/pr40539.ll

  Log Message:
  -----------
  [X86] convertIntLogicToFPLogic - enable fp-logic on pre-AVX targets for supported fp predicates (PR34563)

If the SETCC fp-condcode is supported on SSE as a single CMPPS/PD op then we can use convertIntLogicToFPLogic to reduce EFLAGS and XMM->GPR traffic like we do for AVX targets.

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


Compare: https://github.com/llvm/llvm-project/compare/29511ec7da0a...e4ab2024a65a


More information about the All-commits mailing list