[all-commits] [llvm/llvm-project] e64a71: [VPlan] Refine hasEarlyExit check. (#207791)

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jul 6 13:44:25 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e64a71f09b016edb834eb45e5c172d1337555803
      https://github.com/llvm/llvm-project/commit/e64a71f09b016edb834eb45e5c172d1337555803
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-07-06 (Mon, 06 Jul 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/test/Transforms/LoopVectorize/early_exit_with_outer_loop.ll

  Log Message:
  -----------
  [VPlan] Refine hasEarlyExit check. (#207791)

Currently hasEarlyExit misses cases where we have things like dead exit
blocks or simplified the middle block.

Update to check by counting the predecessors.

This fixes a case where we missed properly updating LoopInfo due to
incorrect results.

Fixes https://github.com/llvm/llvm-project/issues/206007.



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