llvm.org GIT mirror llvm / 8548c24
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 Mehdi Amini 5 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
786786 N->dump(&DAG);
787787 dbgs() << "\nWith: ";
788788 To[0].getNode()->dump(&DAG);
789 dbgs() << " and " << NumTo-1 << " other values\n";
790 for (unsigned i = 0, e = NumTo; i != e; ++i)
791 assert((!To[i].getNode() ||
792 N->getValueType(i) == To[i].getValueType()) &&
793 "Cannot combine value to value of different type!"));
789 dbgs() << " and " << NumTo-1 << " other values\n");
790 for (unsigned i = 0, e = NumTo; i != e; ++i)
791 assert((!To[i].getNode() ||
792 N->getValueType(i) == To[i].getValueType()) &&
793 "Cannot combine value to value of different type!");
794
794795 WorklistRemover DeadNodes(*this);
795796 DAG.ReplaceAllUsesWith(N, To);
796797 if (AddTo) {