[all-commits] [llvm/llvm-project] 3007e2: [AutoUpgrade] Prevent deletion of call if uses sti...

Kshitij Paranjape via All-commits all-commits at lists.llvm.org
Mon Feb 2 13:11:34 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3007e2f050bd36e5e8dab68a5c9abbfbf4561314
      https://github.com/llvm/llvm-project/commit/3007e2f050bd36e5e8dab68a5c9abbfbf4561314
  Author: Kshitij Paranjape <kshitijvparanjape at gmail.com>
  Date:   2026-02-02 (Mon, 02 Feb 2026)

  Changed paths:
    M llvm/lib/IR/AutoUpgrade.cpp
    A llvm/test/Verifier/issue176674.ll
    A llvm/test/Verifier/issue176674_1.ll

  Log Message:
  -----------
  [AutoUpgrade] Prevent deletion of call if uses still exist (#177606)

The calls to the llvm.x86.sse2.pshuflw are being deleted due to invalid
vector type, even though uses still exist. Adding checks to prevent
deletion of call when uses still exist or even if eraseFromParent() is
called ensuring it is called after replaceAllUsesWith().

Fixes: #176674



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