RKSimon added a comment. The flags args needs to be added to unary op getNode via SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef<SDValue> Ops, const SDNodeFlags *Flags) Repository: rL LLVM https://reviews.llvm.org/D32527