Displaying 1 result from an estimated 1 matches for "argin_copy".
2016 Feb 01
2
TableGen customized node with mayStore attribute is deleted if there is no use
...ocs) {
if (VA.isRegLoc()) {
// Arguments passed in registers
EVT RegVT = VA.getLocVT();
VReg = RegInfo.createVirtualRegister(&FOO::BRegsRegClass);
RegInfo.addLiveIn(VA.getLocReg(), VReg);
SDValue ArgIn = DAG.getCopyFromReg(Chain, dl, VReg, RegVT);
SDValue ArgIn_copy = DAG.getNode(FOOISD::MOVE_FLAG , dl, MVT::i32,
Chain, ArgIn); // this node is added in order to move the value from BRegs
class to ARegs class and I want it be kept even it is not used later on
InVals.push_back(ArgIn_copy);
}
}
After checking the recursivelyDeleteUnusedNodes() in DAGC...