@@ -746,7 +746,7 @@ class ISelUpdater : public SelectionDAG::DAGUpdateListener {
746
746
} // end anonymous namespace
747
747
748
748
void SelectionDAGISel::DoInstructionSelection () {
749
- DEBUG (errs () << " ===== Instruction selection begins: BB#"
749
+ DEBUG (dbgs () << " ===== Instruction selection begins: BB#"
750
750
<< FuncInfo->MBB ->getNumber ()
751
751
<< " '" << FuncInfo->MBB ->getName () << " '\n " );
752
752
@@ -805,7 +805,7 @@ void SelectionDAGISel::DoInstructionSelection() {
805
805
CurDAG->setRoot (Dummy.getValue ());
806
806
}
807
807
808
- DEBUG (errs () << " ===== Instruction selection ends:\n " );
808
+ DEBUG (dbgs () << " ===== Instruction selection ends:\n " );
809
809
810
810
PostprocessISelDAG ();
811
811
}
@@ -1780,7 +1780,7 @@ UpdateChainsAndGlue(SDNode *NodeToMatch, SDValue InputChain,
1780
1780
if (!NowDeadNodes.empty ())
1781
1781
CurDAG->RemoveDeadNodes (NowDeadNodes);
1782
1782
1783
- DEBUG (errs () << " ISEL: Match complete!\n " );
1783
+ DEBUG (dbgs () << " ISEL: Match complete!\n " );
1784
1784
}
1785
1785
1786
1786
enum ChainResult {
@@ -2285,9 +2285,9 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2285
2285
SmallVector<SDNode*, 3 > ChainNodesMatched;
2286
2286
SmallVector<SDNode*, 3 > GlueResultNodesMatched;
2287
2287
2288
- DEBUG (errs () << " ISEL: Starting pattern match on root node: " ;
2288
+ DEBUG (dbgs () << " ISEL: Starting pattern match on root node: " ;
2289
2289
NodeToMatch->dump (CurDAG);
2290
- errs () << ' \n ' );
2290
+ dbgs () << ' \n ' );
2291
2291
2292
2292
// Determine where to start the interpreter. Normally we start at opcode #0,
2293
2293
// but if the state machine starts with an OPC_SwitchOpcode, then we
@@ -2299,7 +2299,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2299
2299
// Already computed the OpcodeOffset table, just index into it.
2300
2300
if (N.getOpcode () < OpcodeOffset.size ())
2301
2301
MatcherIndex = OpcodeOffset[N.getOpcode ()];
2302
- DEBUG (errs () << " Initial Opcode index to " << MatcherIndex << " \n " );
2302
+ DEBUG (dbgs () << " Initial Opcode index to " << MatcherIndex << " \n " );
2303
2303
2304
2304
} else if (MatcherTable[0 ] == OPC_SwitchOpcode) {
2305
2305
// Otherwise, the table isn't computed, but the state machine does start
@@ -2366,7 +2366,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2366
2366
if (!Result)
2367
2367
break ;
2368
2368
2369
- DEBUG (errs () << " Skipped scope entry (due to false predicate) at "
2369
+ DEBUG (dbgs () << " Skipped scope entry (due to false predicate) at "
2370
2370
<< " index " << MatcherIndexOfPredicate
2371
2371
<< " , continuing at " << FailIndex << " \n " );
2372
2372
++NumDAGIselRetries;
@@ -2496,7 +2496,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2496
2496
if (CaseSize == 0 ) break ;
2497
2497
2498
2498
// Otherwise, execute the case we found.
2499
- DEBUG (errs () << " OpcodeSwitch from " << SwitchStart
2499
+ DEBUG (dbgs () << " OpcodeSwitch from " << SwitchStart
2500
2500
<< " to " << MatcherIndex << " \n " );
2501
2501
continue ;
2502
2502
}
@@ -2528,7 +2528,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2528
2528
if (CaseSize == 0 ) break ;
2529
2529
2530
2530
// Otherwise, execute the case we found.
2531
- DEBUG (errs () << " TypeSwitch[" << EVT (CurNodeVT).getEVTString ()
2531
+ DEBUG (dbgs () << " TypeSwitch[" << EVT (CurNodeVT).getEVTString ()
2532
2532
<< " ] from " << SwitchStart << " to " << MatcherIndex<<' \n ' );
2533
2533
continue ;
2534
2534
}
@@ -2872,9 +2872,9 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2872
2872
->setMemRefs (MemRefs, MemRefs + NumMemRefs);
2873
2873
}
2874
2874
2875
- DEBUG (errs () << " "
2875
+ DEBUG (dbgs () << " "
2876
2876
<< (Opcode == OPC_MorphNodeTo ? " Morphed" : " Created" )
2877
- << " node: " ; Res->dump (CurDAG); errs () << " \n " );
2877
+ << " node: " ; Res->dump (CurDAG); dbgs () << " \n " );
2878
2878
2879
2879
// If this was a MorphNodeTo then we're completely done!
2880
2880
if (Opcode == OPC_MorphNodeTo) {
@@ -2949,7 +2949,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2949
2949
// If the code reached this point, then the match failed. See if there is
2950
2950
// another child to try in the current 'Scope', otherwise pop it until we
2951
2951
// find a case to check.
2952
- DEBUG (errs () << " Match failed at index " << CurrentOpcodeIndex << " \n " );
2952
+ DEBUG (dbgs () << " Match failed at index " << CurrentOpcodeIndex << " \n " );
2953
2953
++NumDAGIselRetries;
2954
2954
while (1 ) {
2955
2955
if (MatchScopes.empty ()) {
@@ -2969,7 +2969,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
2969
2969
MatchedMemRefs.resize (LastScope.NumMatchedMemRefs );
2970
2970
MatcherIndex = LastScope.FailIndex ;
2971
2971
2972
- DEBUG (errs () << " Continuing at " << MatcherIndex << " \n " );
2972
+ DEBUG (dbgs () << " Continuing at " << MatcherIndex << " \n " );
2973
2973
2974
2974
InputChain = LastScope.InputChain ;
2975
2975
InputGlue = LastScope.InputGlue ;
0 commit comments