[InstCombine] use commutative matcher for pattern with commutative operators
authorSanjay Patel <spatel@rotateright.com>
Mon, 19 Dec 2016 18:35:37 +0000 (18:35 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 19 Dec 2016 18:35:37 +0000 (18:35 +0000)
commit5a443ac000c667302135f0c4735cb3c98bac1763
tree76f81858aa7e6f1bd3d53e4d9366ef6e8c608a97
parent05bf3ec4c48b0b9e4dc0d68cc975e6987228411e
[InstCombine] use commutative matcher for pattern with commutative operators

This is a case that was missed in:
https://reviews.llvm.org/rL290067
...and it would regress if we fix operand complexity (PR28296).

llvm-svn: 290127
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/or.ll