[SDAG] Start plumbing an assert into SDValues that we don't form one
authorChandler Carruth <chandlerc@gmail.com>
Fri, 25 Jul 2014 07:23:23 +0000 (07:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 25 Jul 2014 07:23:23 +0000 (07:23 +0000)
commit72d4fa9cc6e0449dccf61e0d19fd0ef7f00e792b
tree1d84cbed6f7caacd1a6664d4fe2ad281b03c9a56
parent642c8bef1931cfc05f6d23a9b25d7d182cc48c01
[SDAG] Start plumbing an assert into SDValues that we don't form one
with a result number outside the range of results for the node.

I don't know how we managed to not really check this very basic
invariant for so long, but the code is *very* broken at this point.
I have over 270 test failures with the assert enabled. I'm committing it
disabled so that others can join in the cleanup effort and reproduce the
issues. I've also included one of the obvious fixes that I already
found. More fixes to come.

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