Deleted Added
sdiff udiff text old ( 221337 ) new ( 223013 )
full compact
1//===- Miscompilation.cpp - Debug program miscompilations -----------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 610 unchanged lines hidden (view full) ---

619 for (Module::iterator I = Prog->begin(), E = Prog->end(); I != E; ++I)
620 if (!I->isDeclaration())
621 MiscompiledFunctions.push_back(I);
622
623 // Do the reduction...
624 if (!BugpointIsInterrupted)
625 ReduceMiscompilingFunctions(BD, TestFn).reduceList(MiscompiledFunctions,
626 Error);
627 if (!Error.empty())
628 return MiscompiledFunctions;
629
630 outs() << "\n*** The following function"
631 << (MiscompiledFunctions.size() == 1 ? " is" : "s are")
632 << " being miscompiled: ";
633 PrintFunctionList(MiscompiledFunctions);
634 outs() << '\n';
635
636 // See if we can rip any loops out of the miscompiled functions and still
637 // trigger the problem.

--- 445 unchanged lines hidden ---