mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
FindModifiedNodeSlot needs to add LoadSDNode ivars to create proper SelectionDAGCSEMap ID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30866 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67afa13980
commit
9629abac79
@ -454,6 +454,15 @@ SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N,
|
||||
SelectionDAGCSEMap::NodeID ID;
|
||||
ID.SetOpcode(N->getOpcode());
|
||||
ID.SetValueTypes(N->getVTList());
|
||||
if (const LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
|
||||
ID.AddInteger(LD->getAddressingMode());
|
||||
ID.AddInteger(LD->getExtensionType());
|
||||
ID.AddInteger(LD->getLoadVT());
|
||||
ID.AddPointer(LD->getSrcValue());
|
||||
ID.AddInteger(LD->getSrcValueOffset());
|
||||
ID.AddInteger(LD->getAlignment());
|
||||
ID.AddInteger(LD->isVolatile());
|
||||
}
|
||||
ID.SetOperands(Ops, NumOps);
|
||||
return CSEMap.FindNodeOrInsertPos(ID, InsertPos);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user