[all-commits] [llvm/llvm-project] e9aec1: Reapply "[InstCombine] Merge consecutive assumes" ...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Tue Jun 23 05:44:25 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9aec194f1e034f7b548240bd76b623d80bac034
      https://github.com/llvm/llvm-project/commit/e9aec194f1e034f7b548240bd76b623d80bac034
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/assume-loop-align.ll
    M llvm/test/Transforms/InstCombine/assume.ll
    M llvm/test/Transforms/PhaseOrdering/AArch64/std-find.ll

  Log Message:
  -----------
  Reapply "[InstCombine] Merge consecutive assumes" (#205177) (#205324)

The crash was caused by using `getOperandBundle` for an assume, which
requires that the operand bundles are unique. This isn't guaranteed by
assume bundles. This patch adds `hasOperandBundle` instead, which
doesn't have the same constraint.

Original message:

This should make assumes a bit more efficient, since it removes a few
instructions. This should also help with optimizations that are
limited in how many instructions they step through.

This reverts commit 3f0ef1efb26206c3f5d5621d86d740c7f466c67b.



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