mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Remove printouts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
621c9920c7
commit
4b770a3145
@ -505,7 +505,9 @@ static bool DoInsertArrayCast(Value *V, BasicBlock *BB,
|
|||||||
new CastInst(Constant::getNullConstant(V->getType()), DestTy, V->getName());
|
new CastInst(Constant::getNullConstant(V->getType()), DestTy, V->getName());
|
||||||
BB->getInstList().insert(InsertBefore, TheCast);
|
BB->getInstList().insert(InsertBefore, TheCast);
|
||||||
|
|
||||||
|
#ifdef DEBUG_PEEPHOLE_INSTS
|
||||||
cerr << "Inserting cast for " << V << endl;
|
cerr << "Inserting cast for " << V << endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Convert users of the old value over to use the cast result...
|
// Convert users of the old value over to use the cast result...
|
||||||
ValueMapCache VMC;
|
ValueMapCache VMC;
|
||||||
@ -514,7 +516,9 @@ static bool DoInsertArrayCast(Value *V, BasicBlock *BB,
|
|||||||
// The cast is the only thing that is allowed to reference the value...
|
// The cast is the only thing that is allowed to reference the value...
|
||||||
TheCast->setOperand(0, V);
|
TheCast->setOperand(0, V);
|
||||||
|
|
||||||
|
#ifdef DEBUG_PEEPHOLE_INSTS
|
||||||
cerr << "Inserted ptr-array cast: " << TheCast;
|
cerr << "Inserted ptr-array cast: " << TheCast;
|
||||||
|
#endif
|
||||||
return true; // Made a change!
|
return true; // Made a change!
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -560,11 +564,12 @@ bool RaisePointerReferences::doit(Method *M) {
|
|||||||
// arrays...
|
// arrays...
|
||||||
//
|
//
|
||||||
bool Changed = false, LocalChange;
|
bool Changed = false, LocalChange;
|
||||||
do {
|
Changed |= DoInsertArrayCasts(M);
|
||||||
LocalChange = DoInsertArrayCasts(M);
|
|
||||||
|
|
||||||
|
do {
|
||||||
// Iterate over the method, refining it, until it converges on a stable
|
// Iterate over the method, refining it, until it converges on a stable
|
||||||
// state
|
// state
|
||||||
|
bool LocalChange = false;
|
||||||
while (DoRaisePass(M)) LocalChange = true;
|
while (DoRaisePass(M)) LocalChange = true;
|
||||||
Changed |= LocalChange;
|
Changed |= LocalChange;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user