[all-commits] [llvm/llvm-project] 4c17de: [AMDGPU] Fix iterator invalidation during frame lo...

Diana Picus via All-commits all-commits at lists.llvm.org
Fri Oct 17 05:25:45 PDT 2025


  Branch: refs/heads/users/rovka/wwf-fix-pei-inv
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c17de93e50aae2810081d7c8fdf26d36af8bed6
      https://github.com/llvm/llvm-project/commit/4c17de93e50aae2810081d7c8fdf26d36af8bed6
  Author: Diana Picus <diana-magda.picus at amd.com>
  Date:   2025-10-17 (Fri, 17 Oct 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
    M llvm/test/CodeGen/AMDGPU/whole-wave-functions.ll

  Log Message:
  -----------
  [AMDGPU] Fix iterator invalidation during frame lowering

I was a bit too eager to remove the SI_WHOLE_WAVE_FUNC_SETUP instruction
during prolog emission. Erasing it invalidates MBBI, which in some cases
is still needed outside of `emitCSRSpillStores`.

Do the erasing at the end of prolog insertion instead.



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