This is an archive of the discontinued LLVM Phabricator instance.

Combining DIV+REM->DIVREM doesn't belong in LegalizeDAG; move it over into DAGCombiner.
AbandonedPublic

Authored by tyomitch on Oct 14 2015, 10:31 AM.

Details

Summary

As DIVREM nodes now appear at a different time, this patch breaks a few tests.
The two following patches fix them.
I'm going to commit the three as a single patch, but I'm splitting them out for ease of reviewing.

Diff Detail

Event Timeline

tyomitch updated this revision to Diff 37364.Oct 14 2015, 10:31 AM
tyomitch retitled this revision from to Combining DIV+REM->DIVREM doesn't belong in LegalizeDAG; move it over into DAGCombiner..
tyomitch updated this object.
tyomitch added reviewers: sunfish, RKSimon, eli.friedman.
tyomitch added a subscriber: llvm-commits.

I'm going to commit the three as a single patch, but I'm splitting them out for ease of reviewing.

Personally I find it easier to review D13733 plus this patch as a single patch, given that that is just modifying changes made by this patch.

This+D13733 looks generally OK to me, though I'm not a DAGCombiner expert so wait until someone who is also gives the OK.

rengolin accepted this revision.Oct 19 2015, 2:48 AM
rengolin added a reviewer: rengolin.
rengolin added a subscriber: rengolin.

This change looks good to me, too.

This revision is now accepted and ready to land.Oct 19 2015, 2:48 AM

PS: I also agree with John that the patches could have been bundled together from start, especially if they break the tests (meaning they're incomplete ideas separate).

rengolin requested changes to this revision.Oct 19 2015, 3:01 AM
rengolin edited edge metadata.

As stated in D13733, I believe this change should be merged there, and abandoned here.

This revision now requires changes to proceed.Oct 19 2015, 3:02 AM
tyomitch abandoned this revision.Oct 19 2015, 4:24 AM

Abandoned in favour of D13733