[all-commits] [llvm/llvm-project] ce7632: [RegAlloc] Fix use-after-free in `RegAllocBase::cl...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Jul 30 19:05:44 PDT 2025


  Branch: refs/heads/users/shiltian/fix-use-after-free-after-cleanup
  Home:   https://github.com/llvm/llvm-project
  Commit: ce763231946f5f9c8103d3d13c5b94245e35b57b
      https://github.com/llvm/llvm-project/commit/ce763231946f5f9c8103d3d13c5b94245e35b57b
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocBase.cpp
    A llvm/test/CodeGen/AMDGPU/use-after-free-after-cleanup-failed-vreg.ll

  Log Message:
  -----------
  [RegAlloc] Fix use-after-free in `RegAllocBase::cleanupFailedVReg`

Since #128400 already mentions it's not clear about the necessity of removing intervals from regunits, this PR avoids the issue by simply skipping that step.

Fixes SWDEV-527146.



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