forked from OSchip/llvm-project
CodeGen: Do not add a global's address space to the folding set profile.
It is already part of the type (which is part of the global, which is already being added), so there's no need to do it. llvm-svn: 285002
This commit is contained in:
parent
be2ad8f36b
commit
16e9b944e9
|
@ -403,7 +403,6 @@ static void AddNodeIDCustom(FoldingSetNodeID &ID, const SDNode *N) {
|
|||
ID.AddPointer(GA->getGlobal());
|
||||
ID.AddInteger(GA->getOffset());
|
||||
ID.AddInteger(GA->getTargetFlags());
|
||||
ID.AddInteger(GA->getAddressSpace());
|
||||
break;
|
||||
}
|
||||
case ISD::BasicBlock:
|
||||
|
@ -1262,7 +1261,6 @@ SDValue SelectionDAG::getGlobalAddress(const GlobalValue *GV, const SDLoc &DL,
|
|||
ID.AddPointer(GV);
|
||||
ID.AddInteger(Offset);
|
||||
ID.AddInteger(TargetFlags);
|
||||
ID.AddInteger(GV->getType()->getAddressSpace());
|
||||
void *IP = nullptr;
|
||||
if (SDNode *E = FindNodeOrInsertPos(ID, DL, IP))
|
||||
return SDValue(E, 0);
|
||||
|
|
Loading…
Reference in New Issue