Files
clang-p2996/llvm/lib/Support/DynamicAPInt.cpp
Ramkumar Ramachandra 4a9aef683d DynamicAPInt: optimize size of structure (#97831)
Reuse the APInt::BitWidth to eliminate DynamicAPInt::HoldsLarge, cutting
the size of DynamicAPInt by four bytes. This is implemented by making
DynamicAPInt a friend of SlowDynamicAPInt and APInt, so it can directly
access SlowDynamicAPInt::Val and APInt::BitWidth.

We get a speedup of 4% with this patch.
2024-07-06 13:16:07 +01:00

1.2 KiB