OSDN Git Service

[SDAG] Fix CombineTo ordering in visitZERO_EXTEND and visitSIGN_EXTEND
authorNirav Dave <niravd@google.com>
Thu, 1 Jun 2017 19:33:50 +0000 (19:33 +0000)
committerNirav Dave <niravd@google.com>
Thu, 1 Jun 2017 19:33:50 +0000 (19:33 +0000)
commitcbf8bcc206b5e1ccc05be5319f1f0909a3895668
treeb72b5ea410ab644b66553755299bbddcee9e8ae8
parentbe2a63a5a4753b26e1e04c03552c6f34a3552457
[SDAG] Fix CombineTo ordering in visitZERO_EXTEND and visitSIGN_EXTEND

Reorder CombineTo Calls to prevent references to stale/deleted SDNodes which caused undue assertions.

Reviewers: dbabokin

Subscribers: aemerson, rengolin, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304460 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr32284.ll