]> granicus.if.org Git - llvm/commit
[SDAG] Avoid deleted SDNodes PromoteIntBinOp
authorNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 15:41:12 +0000 (15:41 +0000)
committerNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 15:41:12 +0000 (15:41 +0000)
commit227a06d5bb19ccfca9928059eff76cd667e21e97
treeeac14fcbd1f365b54dd05d06fac9d877cf47def4
parent5dc2b583019acfc6e9f4d3e992ec0e49a675d292
[SDAG] Avoid deleted SDNodes PromoteIntBinOp

Reorder work in PromoteIntBinOp to prevent stale (deleted) nodes from
being used.

Fixes PR32340 and PR32345.

Reviewers: hfinkel, dbabokin

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31148

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr32340.ll [new file with mode: 0644]
test/CodeGen/X86/pr32345.ll [new file with mode: 0644]