[all-commits] [llvm/llvm-project] b17f4d: [AggressiveInstCombine] Use AA during store merge ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jul 23 01:10:20 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b17f4d3366cd3a6a276b825342c270a839b849db
      https://github.com/llvm/llvm-project/commit/b17f4d3366cd3a6a276b825342c270a839b849db
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-07-23 (Wed, 23 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
    M llvm/test/Transforms/AggressiveInstCombine/X86/store-merge.ll

  Log Message:
  -----------
  [AggressiveInstCombine] Use AA during store merge (#149992)

This is a small extension of #147540, resolving one of the FIXMEs.
Instead of bailing out on any instruction that may read/write memory,
use AA to check whether it can alias the stored parts. Do this using a
crude check based on the underlying object only.

This pattern occurs rarely in practice, but at the same time it also doesn't
seem to add any compile-time cost, so it's probably worth handling.



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