[InstCombine] add tests to show pattern matching failures due to commutation
authorSanjay Patel <spatel@rotateright.com>
Fri, 9 Sep 2016 16:35:20 +0000 (16:35 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 9 Sep 2016 16:35:20 +0000 (16:35 +0000)
commit6da0fb8c74e16f26c4c96ab12a95975e3f1face7
treeabfbe711ecc11e15da7d22c8dfa795a509dfe0ed
parentaa4adccc4dd2800aa15b5628a0ca77013c37ea53
[InstCombine] add tests to show pattern matching failures due to commutation

I was looking to fix a bug in getComplexity(), and these cases showed up as
obvious failures. I'm not sure how to find these in general though.

llvm-svn: 281055
llvm/test/Transforms/InstCombine/or-xor.ll
llvm/test/Transforms/InstCombine/or.ll
llvm/test/Transforms/InstCombine/xor2.ll