[llvm] [AMDGPU] Enable vectorization of i8 values. (PR #134934)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 13 21:32:31 PDT 2025


================
@@ -1907,6 +1907,10 @@ class TargetTransformInfo {
   /// pad to. Default is no padding.
   unsigned getNumBytesToPadGlobalArray(unsigned Size, Type *ArrayType) const;
 
+  /// \return Returns true if vectorizing 4 x i8s into an i32 is possible.
+  /// Currently only used by the SLP vectorizer.
+  bool canVectorizei8s() const;
----------------
shiltian wrote:

IMHO this is not really a good function names, especially the `i8s` part.

https://github.com/llvm/llvm-project/pull/134934


More information about the llvm-commits mailing list