[all-commits] [llvm/llvm-project] 93a147: [InstCombine] Remove redundant alignment assumptio...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Sep 12 05:45:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93a1470a97ec2c57247824ff2a59437831fea6de
      https://github.com/llvm/llvm-project/commit/93a1470a97ec2c57247824ff2a59437831fea6de
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-09-12 (Fri, 12 Sep 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Analysis/BasicAA/featuretest.ll
    M llvm/test/Transforms/InstCombine/assume-align.ll

  Log Message:
  -----------
  [InstCombine] Remove redundant alignment assumptions. (#123348)

Use known bits to remove redundant alignment assumptions.

Libc++ now adds alignment assumptions for std::vector::begin() and
std::vector::end(), so I expect we will see quite a bit more assumptions
in C++ [1]. Try to clean up some redundant ones to start with.

[1] https://github.com/llvm/llvm-project/pull/108961

PR: https://github.com/llvm/llvm-project/pull/123348



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