mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
"Minor LSR debugging stuff"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc44b9f8d2
commit
8bf295b1bf
@ -3357,7 +3357,7 @@ retry:
|
|||||||
VisitedRegs.insert(F.ScaledReg ? F.ScaledReg : F.BaseRegs[0]);
|
VisitedRegs.insert(F.ScaledReg ? F.ScaledReg : F.BaseRegs[0]);
|
||||||
} else {
|
} else {
|
||||||
DEBUG(dbgs() << "New best at "; NewCost.print(dbgs());
|
DEBUG(dbgs() << "New best at "; NewCost.print(dbgs());
|
||||||
dbgs() << ". Regs:";
|
dbgs() << ".\n Regs:";
|
||||||
for (SmallPtrSet<const SCEV *, 16>::const_iterator
|
for (SmallPtrSet<const SCEV *, 16>::const_iterator
|
||||||
I = NewRegs.begin(), E = NewRegs.end(); I != E; ++I)
|
I = NewRegs.begin(), E = NewRegs.end(); I != E; ++I)
|
||||||
dbgs() << ' ' << **I;
|
dbgs() << ' ' << **I;
|
||||||
@ -3815,6 +3815,9 @@ LSRInstance::ImplementSolution(const SmallVectorImpl<const Formula *> &Solution,
|
|||||||
SmallVector<WeakVH, 16> DeadInsts;
|
SmallVector<WeakVH, 16> DeadInsts;
|
||||||
|
|
||||||
SCEVExpander Rewriter(SE, "lsr");
|
SCEVExpander Rewriter(SE, "lsr");
|
||||||
|
#ifndef NDEBUG
|
||||||
|
Rewriter.setDebugType(DEBUG_TYPE);
|
||||||
|
#endif
|
||||||
Rewriter.disableCanonicalMode();
|
Rewriter.disableCanonicalMode();
|
||||||
Rewriter.enableLSRMode();
|
Rewriter.enableLSRMode();
|
||||||
Rewriter.setIVIncInsertPos(L, IVIncInsertPos);
|
Rewriter.setIVIncInsertPos(L, IVIncInsertPos);
|
||||||
|
Loading…
Reference in New Issue
Block a user