mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
Change errs() to dbgs().
llvm-svn: 92578
This commit is contained in:
parent
2c9dbf7b18
commit
bf6025f893
@ -541,11 +541,11 @@ SDValue DAGCombiner::CombineTo(SDNode *N, const SDValue *To, unsigned NumTo,
|
||||
bool AddTo) {
|
||||
assert(N->getNumValues() == NumTo && "Broken CombineTo call!");
|
||||
++NodesCombined;
|
||||
DEBUG(errs() << "\nReplacing.1 ";
|
||||
DEBUG(dbgs() << "\nReplacing.1 ";
|
||||
N->dump(&DAG);
|
||||
errs() << "\nWith: ";
|
||||
dbgs() << "\nWith: ";
|
||||
To[0].getNode()->dump(&DAG);
|
||||
errs() << " and " << NumTo-1 << " other values\n";
|
||||
dbgs() << " and " << NumTo-1 << " other values\n";
|
||||
for (unsigned i = 0, e = NumTo; i != e; ++i)
|
||||
assert((!To[i].getNode() ||
|
||||
N->getValueType(i) == To[i].getValueType()) &&
|
||||
@ -619,11 +619,11 @@ bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &Demanded) {
|
||||
|
||||
// Replace the old value with the new one.
|
||||
++NodesCombined;
|
||||
DEBUG(errs() << "\nReplacing.2 ";
|
||||
DEBUG(dbgs() << "\nReplacing.2 ";
|
||||
TLO.Old.getNode()->dump(&DAG);
|
||||
errs() << "\nWith: ";
|
||||
dbgs() << "\nWith: ";
|
||||
TLO.New.getNode()->dump(&DAG);
|
||||
errs() << '\n');
|
||||
dbgs() << '\n');
|
||||
|
||||
CommitTargetLoweringOpt(TLO);
|
||||
return true;
|
||||
@ -689,11 +689,11 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
|
||||
RV.getNode()->getOpcode() != ISD::DELETED_NODE &&
|
||||
"Node was deleted but visit returned new node!");
|
||||
|
||||
DEBUG(errs() << "\nReplacing.3 ";
|
||||
DEBUG(dbgs() << "\nReplacing.3 ";
|
||||
N->dump(&DAG);
|
||||
errs() << "\nWith: ";
|
||||
dbgs() << "\nWith: ";
|
||||
RV.getNode()->dump(&DAG);
|
||||
errs() << '\n');
|
||||
dbgs() << '\n');
|
||||
WorkListRemover DeadNodes(*this);
|
||||
if (N->getNumValues() == RV.getNode()->getNumValues())
|
||||
DAG.ReplaceAllUsesWith(N, RV.getNode(), &DeadNodes);
|
||||
@ -4692,11 +4692,11 @@ bool DAGCombiner::CombineToPreIndexedLoadStore(SDNode *N) {
|
||||
BasePtr, Offset, AM);
|
||||
++PreIndexedNodes;
|
||||
++NodesCombined;
|
||||
DEBUG(errs() << "\nReplacing.4 ";
|
||||
DEBUG(dbgs() << "\nReplacing.4 ";
|
||||
N->dump(&DAG);
|
||||
errs() << "\nWith: ";
|
||||
dbgs() << "\nWith: ";
|
||||
Result.getNode()->dump(&DAG);
|
||||
errs() << '\n');
|
||||
dbgs() << '\n');
|
||||
WorkListRemover DeadNodes(*this);
|
||||
if (isLoad) {
|
||||
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 0), Result.getValue(0),
|
||||
@ -4826,11 +4826,11 @@ bool DAGCombiner::CombineToPostIndexedLoadStore(SDNode *N) {
|
||||
BasePtr, Offset, AM);
|
||||
++PostIndexedNodes;
|
||||
++NodesCombined;
|
||||
DEBUG(errs() << "\nReplacing.5 ";
|
||||
DEBUG(dbgs() << "\nReplacing.5 ";
|
||||
N->dump(&DAG);
|
||||
errs() << "\nWith: ";
|
||||
dbgs() << "\nWith: ";
|
||||
Result.getNode()->dump(&DAG);
|
||||
errs() << '\n');
|
||||
dbgs() << '\n');
|
||||
WorkListRemover DeadNodes(*this);
|
||||
if (isLoad) {
|
||||
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 0), Result.getValue(0),
|
||||
@ -4889,11 +4889,11 @@ SDValue DAGCombiner::visitLOAD(SDNode *N) {
|
||||
// v3 = add v2, c
|
||||
// Now we replace use of chain2 with chain1. This makes the second load
|
||||
// isomorphic to the one we are deleting, and thus makes this load live.
|
||||
DEBUG(errs() << "\nReplacing.6 ";
|
||||
DEBUG(dbgs() << "\nReplacing.6 ";
|
||||
N->dump(&DAG);
|
||||
errs() << "\nWith chain: ";
|
||||
dbgs() << "\nWith chain: ";
|
||||
Chain.getNode()->dump(&DAG);
|
||||
errs() << "\n");
|
||||
dbgs() << "\n");
|
||||
WorkListRemover DeadNodes(*this);
|
||||
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 1), Chain, &DeadNodes);
|
||||
|
||||
@ -4909,11 +4909,11 @@ SDValue DAGCombiner::visitLOAD(SDNode *N) {
|
||||
assert(N->getValueType(2) == MVT::Other && "Malformed indexed loads?");
|
||||
if (N->hasNUsesOfValue(0, 0) && N->hasNUsesOfValue(0, 1)) {
|
||||
SDValue Undef = DAG.getUNDEF(N->getValueType(0));
|
||||
DEBUG(errs() << "\nReplacing.6 ";
|
||||
DEBUG(dbgs() << "\nReplacing.6 ";
|
||||
N->dump(&DAG);
|
||||
errs() << "\nWith: ";
|
||||
dbgs() << "\nWith: ";
|
||||
Undef.getNode()->dump(&DAG);
|
||||
errs() << " and 2 other values\n");
|
||||
dbgs() << " and 2 other values\n");
|
||||
WorkListRemover DeadNodes(*this);
|
||||
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 0), Undef, &DeadNodes);
|
||||
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 1),
|
||||
|
Loading…
Reference in New Issue
Block a user