Put back a bit of expensive checking logic that

was overenthusiastically deleted in r70234.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71926 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2009-05-16 04:14:29 +00:00
parent 10287438e1
commit 0394c4fb3d

View File

@ -116,7 +116,7 @@ void DAGTypeLegalizer::PerformExpensiveChecks() {
cerr << "Unprocessed value in a map!";
Failed = true;
}
} else if (isTypeLegal(Res.getValueType())) {
} else if (isTypeLegal(Res.getValueType()) || IgnoreNodeResults(I)) {
if (Mapped > 1) {
cerr << "Value with legal type was transformed!";
Failed = true;