[SDAG] Refactor the code for inserting a newly allocated SDNode into the
authorChandler Carruth <chandlerc@gmail.com>
Tue, 22 Jul 2014 04:07:55 +0000 (04:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 22 Jul 2014 04:07:55 +0000 (04:07 +0000)
commit3f1ae7f58c02fa72880a9607bdddfbbf75fa7266
tree2afb2d6541989c1b1e47a0053065e7881f580aec
parent3c249a5a670870b3f7ce01abb17de1d7fb2586c1
[SDAG] Refactor the code for inserting a newly allocated SDNode into the
DAG into a helper function.

This adds a trip through the (very minimal) verification logic in
a bunch of places that were missing it, but shouldn't have any other
impact outside of refactoring. I'm hoping to use this to do more clever
things when DAG nodes are inserted into the graph.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213612 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp