OSDN Git Service

[InstCombine] improve xor+and/or tests
authorSanjay Patel <spatel@rotateright.com>
Tue, 4 Sep 2018 19:06:46 +0000 (19:06 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 4 Sep 2018 19:06:46 +0000 (19:06 +0000)
commitbadf51784f6021b925f01a34d1e3230d6ff71211
treea893a02595b928d4b0400f5a3e6dbccc582c2ff9
parent49cbe528e3909f606b6d1fb5b251896633e0af27
[InstCombine] improve xor+and/or tests

The tests attempted to check for commuted variants
of these folds, but complexity-based canonicalization
meant we had no coverage for at least 1/2 of the cases.

Also, the folds correctly check hasOneUse(), but there
was no coverage for that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341394 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/xor.ll