<div dir="ltr"><facepalm>. I dropped a parentheses. invalidation should be bit-negation so -(x+1) not -x+1. <div>I'll land a fix presently. <div><br></div><div>Also you should check out X86's / SystemZ's insertDAGNode at HEAD. I just landed a fix regarding inserting an invalidated node that already exists in there. You'll probably want to do the same for your target.</div></div><div><br></div><div>-Nirav</div><div><br></div></div>