We were accidentally connecting it to result 0 instead of result 1. This was caught by the machine verifier that noticed the flags were dead, but we were using them somehow. I'm still not clear what actually happened downstream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336925
91177308-0d34-0410-b5e6-
96231b3b80d8
}
// Connect the flag usage to the last instruction created.
- ReplaceUses(SDValue(Node, 2), SDValue(CNode, 0));
+ ReplaceUses(SDValue(Node, 2), SDValue(CNode, 1));
CurDAG->RemoveDeadNode(Node);
return;
}