The following changes:
r293061: "[InstCombine] Canonicalize guards for NOT OR condition"
r293058: "[InstCombine] Canonicalize guards for AND condition"
were reverted by the change
rL293227: "Revert a couple of InstCombine/Guard checkins"
because they contained a bug related to handling guards with multiple
arguments. The problem was that the extra arguments of the initial
guard were not passed to the newly-created guards.
This patch re-enables canonicalization of guards for AND and NOT OR
conditions and adds proper tests for them.
And the same below.