[all-commits] [llvm/llvm-project] 806a2b: [MC] Reorder MCFragment members to decrease padding

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jan 5 19:09:45 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 806a2b1f3d8850eb88f1f9338e86b6398841c961
      https://github.com/llvm/llvm-project/commit/806a2b1f3d8850eb88f1f9338e86b6398841c961
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-05 (Sun, 05 Jan 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCFragment.h
    M llvm/lib/MC/MCFragment.cpp

  Log Message:
  -----------
  [MC] Reorder MCFragment members to decrease padding

sizeof(MCFragment) does not change, but some if its subclasses do, e.g.
on a 64-bit platform,
sizeof(MCEncodedFragment) decreases from 64 to 56,
sizeof(MCDataFragment) decreases from 224 to 216.




More information about the All-commits mailing list