[all-commits] [llvm/llvm-project] 143cce: [X86][TargetLowering] Avoid deleting temporary nod...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Fri May 9 22:14:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 143cce72b1f50bc37363315793b80ae92d2b0ae3
      https://github.com/llvm/llvm-project/commit/143cce72b1f50bc37363315793b80ae92d2b0ae3
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-05-10 (Sat, 10 May 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    A llvm/test/CodeGen/X86/pr138982.ll

  Log Message:
  -----------
  [X86][TargetLowering] Avoid deleting temporary nodes in `getNegatedExpression` (#139029)

In the original case, the third call to `getCheaperNegatedExpression`
deletes the SDNode returned by the first call.
Similar to 74e6030bcbcc8e628f9a99a424342a0c656456f9, this patch uses
`HandleSDNodes` to prevent nodes from being deleted by subsequent calls.
Closes https://github.com/llvm/llvm-project/issues/138944.



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