[DL] Inline getAlignmentInfo() implementation (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Nov 2020 17:33:07 +0000 (18:33 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Nov 2020 19:56:15 +0000 (20:56 +0100)
commitb5f23189fb051e720d43f8a80c09038d4860b8a1
treea286cc4d545353d599e8bb9c239794817692687a
parentfe431683484a3041e024ab2373bb707b1ca8d1cf
[DL] Inline getAlignmentInfo() implementation (NFC)

Apart from getting the entry in the table (which is already a
separate function), the remaining logic is different for all
alignment types and is better combined with getAlignment().

This is a minor efficiency improvement, and should make further
improvements like using separate storage for different alignment
types simpler.
llvm/include/llvm/IR/DataLayout.h
llvm/lib/IR/DataLayout.cpp