[all-commits] [llvm/llvm-project] a0c01f: [lld-macho][nfc] Use alignToPowerOf2 instead of al...

Jez Ng via All-commits all-commits at lists.llvm.org
Wed Jan 11 14:14:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0c01f05cdbe4f099e2d10d3e19e89c8f248b3d6
      https://github.com/llvm/llvm-project/commit/a0c01f05cdbe4f099e2d10d3e19e89c8f248b3d6
  Author: Jez Ng <jezng at fb.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M lld/MachO/Writer.cpp

  Log Message:
  -----------
  [lld-macho][nfc] Use alignToPowerOf2 instead of alignTo when possible

Skips the divide operation which is generally expensive. Not that it
matters in this diff, the code changed is not particularly hot, but just
for principle & consistency...

Reviewed By: #lld-macho, oontvoo, MaskRay

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




More information about the All-commits mailing list