llvm.org GIT mirror llvm / a07f276
Fix name typo in SelectonDAG git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289969 91177308-0d34-0410-b5e6-96231b3b80d8 Joel Jones 3 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
13701370 void *&InsertPos);
13711371 SDNode *FindModifiedNodeSlot(SDNode *N, ArrayRef Ops,
13721372 void *&InsertPos);
1373 SDNode *UpdadeSDLocOnMergedSDNode(SDNode *N, const SDLoc &loc);
1373 SDNode *UpdateSDLocOnMergeSDNode(SDNode *N, const SDLoc &loc);
13741374
13751375 void DeleteNodeNotInCSEMaps(SDNode *N);
13761376 void DeallocateNode(SDNode *N);
61586158 return New;
61596159 }
61606160
6161 /// UpdadeSDLocOnMergedSDNode - If the opt level is -O0 then it throws away
6161 /// UpdateSDLocOnMergeSDNode - If the opt level is -O0 then it throws away
61626162 /// the line number information on the merged node since it is not possible to
61636163 /// preserve the information that operation is associated with multiple lines.
61646164 /// This will make the debugger working better at -O0, were there is a higher
61656165 /// probability having other instructions associated with that line.
61666166 ///
61676167 /// For IROrder, we keep the smaller of the two
6168 SDNode *SelectionDAG::UpdadeSDLocOnMergedSDNode(SDNode *N, const SDLoc &OLoc) {
6168 SDNode *SelectionDAG::UpdateSDLocOnMergeSDNode(SDNode *N, const SDLoc &OLoc) {
61696169 DebugLoc NLoc = N->getDebugLoc();
61706170 if (NLoc && OptLevel == CodeGenOpt::None && OLoc.getDebugLoc() != NLoc) {
61716171 N->setDebugLoc(DebugLoc());
61996199 FoldingSetNodeID ID;
62006200 AddNodeIDNode(ID, Opc, VTs, Ops);
62016201 if (SDNode *ON = FindNodeOrInsertPos(ID, SDLoc(N), IP))
6202 return UpdadeSDLocOnMergedSDNode(ON, SDLoc(N));
6202 return UpdateSDLocOnMergeSDNode(ON, SDLoc(N));
62036203 }
62046204
62056205 if (!RemoveNodeFromCSEMaps(N))
63516351 AddNodeIDNode(ID, ~Opcode, VTs, Ops);
63526352 IP = nullptr;
63536353 if (SDNode *E = FindNodeOrInsertPos(ID, DL, IP)) {
6354 return cast(UpdadeSDLocOnMergedSDNode(E, DL));
6354 return cast(UpdateSDLocOnMergeSDNode(E, DL));
63556355 }
63566356 }
63576357