[all-commits] [llvm/llvm-project] 1a9fbf: [X86] combineLoad - reuse an existing VBROADCAST_L...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Nov 13 04:00:57 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a9fbf61661558d4f3e03390161400db734aab59
      https://github.com/llvm/llvm-project/commit/1a9fbf61661558d4f3e03390161400db734aab59
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-11-13 (Mon, 13 Nov 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vec_fabs.ll

  Log Message:
  -----------
  [X86] combineLoad - reuse an existing VBROADCAST_LOAD constant for a smaller vector load of the same constant

Extends the existing code that performed something similar for SUBV_BROADCAST_LOAD, but this is just for cases where AVX2 targets loads full width 128-bit constant vectors but broadcasts the equivalent 256-bit constant vector

Fixes AVX2 case for Issue #70947




More information about the All-commits mailing list