mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-06 03:47:44 +00:00
Always assert in DAGCombine and not only when -debug is enabled
Right now in DAG Combine check the validity of the returned type only when -debug is given on the command line. However usually the test cases in the validation does not use -debug. An Assert build should always check this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
50c8c5686e
commit
8548c2453f
@ -787,11 +787,12 @@ SDValue DAGCombiner::CombineTo(SDNode *N, const SDValue *To, unsigned NumTo,
|
||||
N->dump(&DAG);
|
||||
dbgs() << "\nWith: ";
|
||||
To[0].getNode()->dump(&DAG);
|
||||
dbgs() << " and " << NumTo-1 << " other values\n";
|
||||
for (unsigned i = 0, e = NumTo; i != e; ++i)
|
||||
assert((!To[i].getNode() ||
|
||||
N->getValueType(i) == To[i].getValueType()) &&
|
||||
"Cannot combine value to value of different type!"));
|
||||
dbgs() << " and " << NumTo-1 << " other values\n");
|
||||
for (unsigned i = 0, e = NumTo; i != e; ++i)
|
||||
assert((!To[i].getNode() ||
|
||||
N->getValueType(i) == To[i].getValueType()) &&
|
||||
"Cannot combine value to value of different type!");
|
||||
|
||||
WorklistRemover DeadNodes(*this);
|
||||
DAG.ReplaceAllUsesWith(N, To);
|
||||
if (AddTo) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user