[all-commits] [llvm/llvm-project] d42192: [X86][CostModel] Correct the costs for truncate to...

topperc via All-commits all-commits at lists.llvm.org
Tue Apr 28 10:40:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d42192c50f7b596590aefa3251513207123609f6
      https://github.com/llvm/llvm-project/commit/d42192c50f7b596590aefa3251513207123609f6
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/cast.ll
    M llvm/test/Analysis/CostModel/X86/min-legal-vector-width.ll
    M llvm/test/Analysis/CostModel/X86/trunc.ll

  Log Message:
  -----------
  [X86][CostModel] Correct the costs for truncate to a mask register with avx512

I've modified isTruncateFree to get an accurate cost for types that need to be split. I'm planning to look into fixing it for all vectors, but need more cost cleanups first.

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


  Commit: c480dc6b47cf29b2a14c14a5544d153de091644e
      https://github.com/llvm/llvm-project/commit/c480dc6b47cf29b2a14c14a5544d153de091644e
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M llvm/test/CodeGen/X86/sbb.ll

  Log Message:
  -----------
  [X86] Pre-commit tests for D78984. NFC

These tests show some missed opportunities to use sbb/adc.


  Commit: 0de7ddbfb033671d6ba75aa8c88c63e2919a6ad6
      https://github.com/llvm/llvm-project/commit/0de7ddbfb033671d6ba75aa8c88c63e2919a6ad6
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/sbb.ll
    M llvm/test/CodeGen/X86/scheduler-backtracking.ll
    M llvm/test/CodeGen/X86/select.ll

  Log Message:
  -----------
  [X86] Handle more cases in combineAddOrSubToADCOrSBB.

This adds support for

X + SETAE --> sbb X, -1
X - SETAE --> adc X, -1

Fixes PR45700

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


Compare: https://github.com/llvm/llvm-project/compare/01b5f521408d...0de7ddbfb033


More information about the All-commits mailing list