forked from OSchip/llvm-project
parent
67786cce66
commit
c36231b95e
|
|
@ -986,9 +986,9 @@ DOUT << "AlreadySelected " << AlreadySelected << "\n";
|
||||||
|
|
||||||
// Get the new AND mask, this folds to a constant.
|
// Get the new AND mask, this folds to a constant.
|
||||||
SDValue NewANDMask = CurDAG->getNode(ISD::SRL, N.getValueType(),
|
SDValue NewANDMask = CurDAG->getNode(ISD::SRL, N.getValueType(),
|
||||||
SDValue(C2, 0), SDValue(C1, 0));
|
SDValue(C2, 0), SDValue(C1, 0));
|
||||||
SDValue NewAND = CurDAG->getNode(ISD::AND, N.getValueType(),
|
SDValue NewAND = CurDAG->getNode(ISD::AND, N.getValueType(),
|
||||||
Shift.getOperand(0), NewANDMask);
|
Shift.getOperand(0), NewANDMask);
|
||||||
SDValue NewSHIFT = CurDAG->getNode(ISD::SHL, N.getValueType(),
|
SDValue NewSHIFT = CurDAG->getNode(ISD::SHL, N.getValueType(),
|
||||||
NewAND, SDValue(C1, 0));
|
NewAND, SDValue(C1, 0));
|
||||||
NewANDMask.getNode()->setNodeId(Shift.getNode()->getNodeId());
|
NewANDMask.getNode()->setNodeId(Shift.getNode()->getNodeId());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue