mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-22 10:36:10 +00:00
Fix the "infinite looping unless you disable adce" bug
Also remove an option to disable adce :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc7c4acffa
commit
b2c180f04e
@ -330,7 +330,7 @@ static bool DebugACrash(BugDriver &BD, bool (*TestFn)(BugDriver &, Module *)) {
|
||||
|
||||
// FIXME: This should use the list reducer to converge faster by deleting
|
||||
// larger chunks of instructions at a time!
|
||||
unsigned Simplification = 4;
|
||||
unsigned Simplification = 2;
|
||||
do {
|
||||
--Simplification;
|
||||
std::cout << "\n*** Attempting to reduce testcase by deleting instruc"
|
||||
|
@ -33,9 +33,6 @@ namespace llvm {
|
||||
|
||||
namespace {
|
||||
cl::opt<bool>
|
||||
NoADCE("disable-adce",
|
||||
cl::desc("Do not use the -adce pass to reduce testcases"));
|
||||
cl::opt<bool>
|
||||
NoDCE ("disable-dce",
|
||||
cl::desc("Do not use the -dce pass to reduce testcases"));
|
||||
cl::opt<bool, true>
|
||||
@ -78,9 +75,6 @@ Module *BugDriver::deleteInstructionFromProgram(const Instruction *I,
|
||||
// Make sure that the appropriate target data is always used...
|
||||
Passes.add(new TargetData("bugpoint", Result));
|
||||
|
||||
if (Simplification > 2 && !NoADCE)
|
||||
Passes.add(createAggressiveDCEPass()); // Remove dead code...
|
||||
//Passes.add(createInstructionCombiningPass());
|
||||
if (Simplification > 1 && !NoDCE)
|
||||
Passes.add(createDeadCodeEliminationPass());
|
||||
if (Simplification && !DisableSimplifyCFG)
|
||||
|
Loading…
x
Reference in New Issue
Block a user