[all-commits] [llvm/llvm-project] 26609f: [SimpleLoopUnswitch] Fix bug in partially invarian...

Ehsan Amiri via All-commits all-commits at lists.llvm.org
Thu Sep 10 11:57:51 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26609f5b95679e02d2373a7c97ff811872a4b505
      https://github.com/llvm/llvm-project/commit/26609f5b95679e02d2373a7c97ff811872a4b505
  Author: Ehsan Amiri <ehsan.amiri at huawei.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
    A llvm/test/Transforms/SimpleLoopUnswitch/pr219510.ll

  Log Message:
  -----------
  [SimpleLoopUnswitch] Fix bug in partially invariant unswitching (#222118)

Partial invariant unswitching can potentially hoist a load from header
to the preheader of the loop. If a potentially no-return function call
exists in the loop header before the load instruction, the
transformation is still performed, but this is not correct.



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