[all-commits] [llvm/llvm-project] 73d92f: [CodeGen] Emit alignment "Max Skip" operand

NickGuy-Arm via All-commits all-commits at lists.llvm.org
Wed Jan 5 04:54:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73d92faa2fc00bff240a22a51974771cd03ed86a
      https://github.com/llvm/llvm-project/commit/73d92faa2fc00bff240a22a51974771cd03ed86a
  Author: Nicholas Guy <nicholas.guy at arm.com>
  Date:   2022-01-05 (Wed, 05 Jan 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/AsmPrinter.h
    M llvm/include/llvm/CodeGen/MachineBasicBlock.h
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/MachineBlockPlacement.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    A llvm/test/CodeGen/AArch64/aarch64-p2align-max-bytes.ll

  Log Message:
  -----------
  [CodeGen] Emit alignment "Max Skip" operand

The current AsmPrinter has support to emit the "Max Skip" operand
(the 3rd of .p2align), however has no support for it to actually be specified.
Adding MaxBytesForAlignment to MachineBasicBlock provides this capability on a
per-block basis. Leaving the value as default (0) causes no observable differences
in behaviour.

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


  Commit: 13992498cd96dcef34cdf1ff02730d266feb0730
      https://github.com/llvm/llvm-project/commit/13992498cd96dcef34cdf1ff02730d266feb0730
  Author: Nicholas Guy <nicholas.guy at arm.com>
  Date:   2022-01-05 (Wed, 05 Jan 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64Subtarget.cpp
    M llvm/lib/Target/AArch64/AArch64Subtarget.h
    A llvm/test/CodeGen/AArch64/aarch64-p2align-max-bytes-neoverse.ll

  Log Message:
  -----------
  [AArch64][CodeGen] Emit alignment "Max Skip" operand for AArch64 loops

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


Compare: https://github.com/llvm/llvm-project/compare/5109737c924d...13992498cd96


More information about the All-commits mailing list