[all-commits] [llvm/llvm-project] c3a772: [X86] Add getPack helper

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Nov 14 13:30:10 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3a772fdf51b3bde8def94610eeae6f0978dd77f
      https://github.com/llvm/llvm-project/commit/c3a772fdf51b3bde8def94610eeae6f0978dd77f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-11-14 (Sun, 14 Nov 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vector-fshl-128.ll
    M llvm/test/CodeGen/X86/vector-fshl-rot-128.ll
    M llvm/test/CodeGen/X86/vector-fshr-128.ll
    M llvm/test/CodeGen/X86/vector-fshr-rot-128.ll
    M llvm/test/CodeGen/X86/vector-rotate-128.ll
    M llvm/test/CodeGen/X86/vector-shift-shl-128.ll
    M llvm/test/CodeGen/X86/vector-shift-shl-sub128.ll

  Log Message:
  -----------
  [X86] Add getPack helper

This helper provides a more complete approach for lowering to X86ISD::PACKSS/PACKUS nodes - testing for existing suitable sign/zero extension before recreating it.

It also optionally packs the upper half instead of the lower half.




More information about the All-commits mailing list