[all-commits] [llvm/llvm-project] 49ee67: [NFC][LLVM][CodeGen][X86] Add ConstantInt/FP based...

Paul Walker via All-commits all-commits at lists.llvm.org
Tue May 13 03:33:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49ee674e5de272e9a1f439d37533646f63933594
      https://github.com/llvm/llvm-project/commit/49ee674e5de272e9a1f439d37533646f63933594
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86FixupVectorConstants.cpp
    M llvm/lib/Target/X86/X86MCInstLower.cpp
    M llvm/test/CodeGen/X86/sse2.ll
    M llvm/test/CodeGen/X86/vector-shuffle-128-v16.ll

  Log Message:
  -----------
  [NFC][LLVM][CodeGen][X86] Add ConstantInt/FP based vector support to MachineInstr fixup and printing code. (#137331)

When -use-constant-{int,fp}-for-fixed-length-splat are enabled, constant
vector splats take the form of ConstantInt/FP instead of ConstantVector.
These constants get linked to MachineInstrs via constant pools for later
processing. The processing assumes ConstantInt/FP to always represent
scalar constants with this PR extending the code to support vector
types.

NOTE: The test choices are somewhat artificial because pretty much all
the vector tests failed without these changes when the new constants are
enabled.

---------

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>



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