[all-commits] [llvm/llvm-project] fe3f8a: [X86] getIntrinsicInstrCost - begin generalizing B...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jun 17 10:02:00 PDT 2024


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

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

  Log Message:
  -----------
  [X86] getIntrinsicInstrCost - begin generalizing BSWAP load/store-folding handling.

Move load/store folding 'free costs' inside the adjustTableCost helper so we can some additional intrinsics in the future.

The plan is to do something similar for other costs callbacks as well (getArithmeticInstrCost etc.).


  Commit: 7e3507e2f565bfc63d4a3f098ab770dce842ed32
      https://github.com/llvm/llvm-project/commit/7e3507e2f565bfc63d4a3f098ab770dce842ed32
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-17 (Mon, 17 Jun 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAG] visitAVG - avoid duplication in the avg(ext(x), ext(y)) -> ext(avg(x, y)) folds

m_BinOp doesn't need a compile time opcode - so we can merge these into signed/unsigned cases.


Compare: https://github.com/llvm/llvm-project/compare/d1a4f0c9fb55...7e3507e2f565

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list