Reorder work in PromoteIntBinOp to prevent stale (deleted) nodes from
being used.
Fixes PR32340 and PR32345
Paths
| Differential D31148
[SDAG] Avoid deleted SDNodes PromoteIntBinOp ClosedPublic Authored by niravd on Mar 20 2017, 12:21 PM.
Details Summary Reorder work in PromoteIntBinOp to prevent stale (deleted) nodes from Fixes PR32340 and PR32345
Diff Detail
Event Timeline
niravd marked 2 inline comments as done. Comment ActionsFix failed promote case
Comment Actions LGTM but if you can please strip the *.getNode() from the bool checks - they're not necessary
This revision is now accepted and ready to land.Mar 28 2017, 7:56 AM Closed by commit rL298923: [SDAG] Avoid deleted SDNodes PromoteIntBinOp (authored by niravd). · Explain WhyMar 28 2017, 8:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 92635 lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr32340.ll
test/CodeGen/X86/pr32345.ll
|
What about cases where PromoteOperand returns SDValue()? Or where N0 == N1?