Skip to content

Commit 31c55d9

Browse files
AaronBallmantmsri
authored andcommitted
Revert "[clang] Increase VecLib bitfield size to 4 bits in CodeGenOptions.def" (llvm#109161)
Reverts llvm#108804 Bots are failing: https://lab.llvm.org/buildbot/#/builders/140/builds/6859
1 parent 5b53cf0 commit 31c55d9

File tree

4 files changed

+2
-65
lines changed

4 files changed

+2
-65
lines changed

clang/include/clang/Basic/CodeGenOptions.def

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -375,18 +375,8 @@ ENUM_CODEGENOPT(Inlining, InliningMethod, 2, NormalInlining)
375375
/// The maximum stack size a function can have to be considered for inlining.
376376
VALUE_CODEGENOPT(InlineMaxStackSize, 32, UINT_MAX)
377377

378-
// Define the number of bits required for the VecLib enum
379-
#define VECLIB_BIT_COUNT (llvm::countPopulation(llvm::driver::VectorLibrary::MaxLibrary))
380-
381-
// Ensure the VecLib bitfield has enough space for future vector libraries.
382-
// The number of bits is determined automatically based on the number of enum values.
383-
static_assert(static_cast<size_t>(llvm::driver::VectorLibrary::MaxLibrary) <= (1 << VECLIB_BIT_COUNT),
384-
"VecLib bitfield size is too small to accommodate all vector libraries.");
385-
386-
// VecLib definition in CodeGenOptions.def
387-
ENUM_CODEGENOPT(VecLib, llvm::driver::VectorLibrary, VECLIB_BIT_COUNT, llvm::driver::VectorLibrary::NoLibrary)
388-
389-
#undef VECLIB_BIT_COUNT
378+
// Vector functions library to use.
379+
ENUM_CODEGENOPT(VecLib, llvm::driver::VectorLibrary, 3, llvm::driver::VectorLibrary::NoLibrary)
390380

391381
/// The default TLS model to use.
392382
ENUM_CODEGENOPT(DefaultTLSModel, TLSModel, 2, GeneralDynamicTLSModel)

clang/unittests/CodeGen/AllLibrariesFit.cpp

Lines changed: 0 additions & 10 deletions
This file was deleted.

clang/unittests/CodeGen/EncodingDecodingTest.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.

clang/unittests/CodeGen/SimulatedOverflowTest.cpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)