[all-commits] [llvm/llvm-project] 471244: [InferAlignment] Propagate alignment information a...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Tue May 26 06:47:15 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 471244d790755842e1262b9c6a889186e0a6e078
      https://github.com/llvm/llvm-project/commit/471244d790755842e1262b9c6a889186e0a6e078
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/InferAlignment.cpp
    A llvm/test/Transforms/InferAlignment/propagate-across-blocks.ll

  Log Message:
  -----------
  [InferAlignment] Propagate alignment information across blocks (#198114)

This patch implements DT-based cross-block alignment propagation. The
algorithm processes the basic blocks in a depth-first traversal of DT.
The stack is emulated to avoid recursive visiting.

IR diff: https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/321.
Most of the improvement is useless, as it makes load/store instructions
overaligned. But several alignment checks are eliminated:
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/321/commits/2ac31cb4f44261fa256d23061346af3aac73a41d.

Compile-time impact: +0.03%

https://llvm-compile-time-tracker.com/compare.php?from=f45f3ce5da9e35f819db9b8ed2775dac8c2b1171&to=93d511bc2a64792fcdb8d84b0b696a7c8d61ef40&stat=instructions%3Au



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list