[SDAG] Enable the new assert for out-of-range result numbers in
authorChandler Carruth <chandlerc@gmail.com>
Fri, 25 Jul 2014 09:19:23 +0000 (09:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 25 Jul 2014 09:19:23 +0000 (09:19 +0000)
commit568ab6a8dcc2ce0081113291163ee1aeae0221c0
treeec8052a7dbc868e3b0345d09aa04194d4e8219cd
parent38ccfe97614086b430a4c63ec2f7b8af83d897c9
[SDAG] Enable the new assert for out-of-range result numbers in
SDValues, fixing the two bugs left in the regression suite.

The key for both of these was the use a single value type rather than
a VTList which caused an unintentionally single-result merge-value node.
Fix this by getting the appropriate VTList in place.

Doing this exposed that the comments in x86's code abouth how MUL_LOHI
operands are handle is wrong. The bug with the use of out-of-range
result numbers was hiding the bug about the order of operands here (as
best i can tell). There are more places where the code appears to get
this backwards still...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213931 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp