This is an archive of the discontinued LLVM Phabricator instance.

DAGCombiner::MatchBSwapHWord fix for (t0 | t1) | (t2 | t3)
AbandonedPublic

Authored by andrew.zhogin on Sep 12 2015, 6:12 AM.

Details

Reviewers
majnemer
Summary

DAGCombiner::MatchBSwapHWord works for ((t0 | t1) | t2) | t3.
But for symmetric case it's broken: (t0 | t1) | (t2 | t3).
This patch fixes it and adds CodeGen test cases for ARM rev16 instruction.

Diff Detail

Event Timeline

andrew.zhogin retitled this revision from to DAGCombiner::MatchBSwapHWord fix for (t0 | t1) | (t2 | t3).
andrew.zhogin updated this object.
andrew.zhogin added a reviewer: majnemer.
andrew.zhogin added subscribers: llvm-commits, asl.
andrew.zhogin abandoned this revision.Jul 1 2017, 9:50 AM

This problem was fixed.