[all-commits] [llvm/llvm-project] 5d734f: [llvm][SPIRV] Expose fast `popcnt` support for SPI...

Alex Voicu via All-commits all-commits at lists.llvm.org
Sat Sep 28 08:45:55 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d734fa4c8f358299a4dfd2a7f9315a226b94a4a
      https://github.com/llvm/llvm-project/commit/5d734fa4c8f358299a4dfd2a7f9315a226b94a4a
  Author: Alex Voicu <alexandru.voicu at amd.com>
  Date:   2024-09-28 (Sat, 28 Sep 2024)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVTargetTransformInfo.h
    A llvm/test/Transforms/LoopIdiom/SPIRV/lit.local.cfg
    A llvm/test/Transforms/LoopIdiom/SPIRV/popcnt.ll

  Log Message:
  -----------
  [llvm][SPIRV] Expose fast `popcnt` support for SPIR-V targets (#109845)

This adds the TTI predicate for conveying the availability of fast
`popcnt`, which subsequently allows passes like `LoopIdiomRecognize` to
collapse known popcount patterns. Since SPIR-V natively exposes
`OpBitcount`, it seems preferable to compress the resulting code, and
retain the information, even if a concrete target might have to expand
back into a loop structure.



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