[all-commits] [llvm/llvm-project] b5f231: [DL] Inline getAlignmentInfo() implementation (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Nov 30 12:01:15 PST 2020


  Branch: refs/heads/temp-test-main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5f23189fb051e720d43f8a80c09038d4860b8a1
      https://github.com/llvm/llvm-project/commit/b5f23189fb051e720d43f8a80c09038d4860b8a1
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-11-30 (Mon, 30 Nov 2020)

  Changed paths:
    M llvm/include/llvm/IR/DataLayout.h
    M llvm/lib/IR/DataLayout.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list