[DAGCombiner] create binop nodes with all of expected values
authorSanjay Patel <spatel@rotateright.com>
Wed, 25 Aug 2021 20:09:51 +0000 (16:09 -0400)
committerSanjay Patel <spatel@rotateright.com>
Wed, 25 Aug 2021 20:14:22 +0000 (16:14 -0400)
commite728d1a3e82b097d439c47b7b02d94f11f45624d
treef332b6a7958b554f05a3c8a20c5f9b906a833c4d
parentcdd407286a9652ec62b33f437a298754fe3ba7ab
[DAGCombiner] create binop nodes with all of expected values

This is another bug exposed by https://llvm.org/PR51612
(and the one that triggered the initial assertion) in the report.

That example was suppressed with:
985b48f18341

...but these would still crash because we created nodes
like UADDO without the expected 2 output values.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/select.ll