]> granicus.if.org Git - llvm/commit
[SDAG] Deal with deleted node in PromoteIntShiftOp
authorNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 17:09:49 +0000 (17:09 +0000)
committerNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 17:09:49 +0000 (17:09 +0000)
commitf92edffedaa9d95e2169e3e4037ef7fc1c9d7d8c
treec1ed91c32042a32906318dcd5a961a6808dc8df1
parent0a6c80abd7d32376fa0ab6c537433204d374bd50
[SDAG] Deal with deleted node in PromoteIntShiftOp

Deal with case that initial node is deleted during dag-combine leading
to an assertional failure in promoteIntShiftOp.

Fixes PR32420.

Reviewers: spatel, RKSimon

Subscribers: llvm-commits

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

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