[all-commits] [llvm/llvm-project] 347fb2: [libclc] Optimize CLC vector relational builtins (...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon Jan 27 05:26:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 347fb208c1e390a4f108e566efc81bd945837307
      https://github.com/llvm/llvm-project/commit/347fb208c1e390a4f108e566efc81bd945837307
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2025-01-27 (Mon, 27 Jan 2025)

  Changed paths:
    M libclc/clc/include/clc/relational/relational.h
    M libclc/clc/lib/generic/relational/clc_isequal.cl
    M libclc/clc/lib/generic/relational/clc_isgreater.cl
    M libclc/clc/lib/generic/relational/clc_isgreaterequal.cl
    M libclc/clc/lib/generic/relational/clc_isless.cl
    M libclc/clc/lib/generic/relational/clc_islessequal.cl
    M libclc/clc/lib/generic/relational/clc_islessgreater.cl
    M libclc/clc/lib/generic/relational/clc_isnotequal.cl

  Log Message:
  -----------
  [libclc] Optimize CLC vector relational builtins (#124537)

Clang knows how to perform relational operations on OpenCL vectors, so
we don't need to use the Clang builtins. The builtins we were using
didn't support vector types, so we were previously scalarizing.

This commit generates the same LLVM fcmp operations as before, just
without the scalarization.



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