[all-commits] [llvm/llvm-project] 475cec: [clang] Increase VecLib bitfield size to 4 bits in...

Mainak Sil via All-commits all-commits at lists.llvm.org
Wed Sep 18 08:30:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 475ceca859233b387c22f13ecef581158ef36346
      https://github.com/llvm/llvm-project/commit/475ceca859233b387c22f13ecef581158ef36346
  Author: Mainak Sil <mainaksil0 at gmail.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    A clang/unittests/CodeGen/AllLibrariesFit.cpp
    A clang/unittests/CodeGen/EncodingDecodingTest.cpp
    A clang/unittests/CodeGen/SimulatedOverflowTest.cpp

  Log Message:
  -----------
  [clang] Increase VecLib bitfield size to 4 bits in CodeGenOptions.def (#108804)

Summary:
This PR fixes the issue where the VecLib bitfield in CodeGenOptions.def
is too small to accommodate the increasing number of vector libraries.
Specifically, the bitfield size was previously set to 3, but with the
introduction of more vector libraries (currently 9), the bitfield needed
to be expanded to avoid potential issues in vectorization.

In this PR, I have increased the size of the VecLib bitfield from 3 to 4
to account for the additional libraries. This ensures that all 9 vector
libraries are correctly encoded and available for use without errors.

Changes Made:
Modified: Increased the VecLib bitfield size from 3 to 4 in
clang/include/clang/Basic/CodeGenOptions.def.

Motivation:
This change is necessary to ensure that all vector libraries are
properly represented and selectable. The current limitation of the
VecLib bitfield size was causing some vectorization opportunities to be
lost when more than 3 bits were needed to represent the library options.

Closes:
Fixes https://github.com/llvm/llvm-project/issues/108704



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