[all-commits] [llvm/llvm-project] e419e2: [CodeGen] Stop storing alignment information into ...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Fri Feb 24 10:37:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e419e22ff6fdff97191d132555ded7811c3f5b05
      https://github.com/llvm/llvm-project/commit/e419e22ff6fdff97191d132555ded7811c3f5b05
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/Address.h

  Log Message:
  -----------
  [CodeGen] Stop storing alignment information into pointers in Address

This reverts b1613f05ae0ce4efc6b6475ea4459957ebcb0150. The change was
made in an attempt to reduce memory consumption by storing the alignment
information into pointers, but it turns out it doesn't make much
difference.

https://llvm-compile-time-tracker.com/compare.php?from=998ad085e865f2e5acc589d6bee0e3379042da2e&to=5de4a1989c474f37ac03f20ccb0aef50f6e3b854&stat=max-rss

This fixes a bug introduced in https://reviews.llvm.org/D142584. The
patch reduced the number of bits used for alignment from 6 bits to 5
bits, which made it impossible to encode the maximum allowed alignment
in llvm (1 << 32).

Differential Revision: https://reviews.llvm.org/D144686




More information about the All-commits mailing list