[DataLayout] Use separate vectors to store alignment (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Dec 2020 20:31:22 +0000 (21:31 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 16 Feb 2023 15:09:07 +0000 (16:09 +0100)
commit4565bc00de6e5eedc2a87e1e7c1088a34e74dc3a
tree9c8ff66c6b8d7678ef2e5baaf85387bb5a34829e
parentace6072bca65f946478edeeee018ca1d6a947a3e
[DataLayout] Use separate vectors to store alignment (NFC)

Instead of storing alignment for integers, floats, vectors and
structs in a single vector with a type tag, store them in
separate vectors instead. This makes the alignment lookup faster,
as we don't have to scan over irrelevant alignment entries.
llvm/include/llvm/IR/DataLayout.h
llvm/lib/IR/DataLayout.cpp