mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
make selectnodeto set the nodeid to -1. This makes it more akin to
creating a new node then replacing uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
450986db96
commit
5857e0add8
@ -4553,7 +4553,10 @@ SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
|
||||
SDVTList VTs, const SDValue *Ops,
|
||||
unsigned NumOps) {
|
||||
return MorphNodeTo(N, ~MachineOpc, VTs, Ops, NumOps);
|
||||
N = MorphNodeTo(N, ~MachineOpc, VTs, Ops, NumOps);
|
||||
// Reset the NodeID to -1.
|
||||
N->setNodeId(-1);
|
||||
return N;
|
||||
}
|
||||
|
||||
SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc,
|
||||
|
Loading…
Reference in New Issue
Block a user