[all-commits] [llvm/llvm-project] 5e8779: [LoopInfo] Pointer to stack object may not be loop...

weiguozhi via All-commits all-commits at lists.llvm.org
Sat Aug 9 14:20:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e87792200697818c0f6cb17be64b393fe31244c
      https://github.com/llvm/llvm-project/commit/5e87792200697818c0f6cb17be64b393fe31244c
  Author: weiguozhi <57237827+weiguozhi at users.noreply.github.com>
  Date:   2025-08-09 (Sat, 09 Aug 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/LoopInfo.h
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/Analysis/LoopInfo.cpp
    M llvm/lib/Transforms/Scalar/LICM.cpp
    A llvm/test/Transforms/LICM/licm-coroutine.ll

  Log Message:
  -----------
  [LoopInfo] Pointer to stack object may not be loop invariant in a coroutine function (#149936)

A coroutine function may be split to ramp function and resume function,
and they have different stack frames, so a pointer to stack objects may
have different addresses depending on where it is used, so it's not a
loop invariant.

It temporarily fixes https://github.com/llvm/llvm-project/issues/149604.



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