[InstSimplify] add commuted variants of logical and/or pattern; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 26 Jan 2023 17:30:37 +0000 (12:30 -0500)
committerSanjay Patel <spatel@rotateright.com>
Thu, 26 Jan 2023 18:38:43 +0000 (13:38 -0500)
commita56a02bc7eda421bb43db4936e70ba7f3362ccbc
treef991fea988af349616a306c28e1703256f45c1da
parentdf0488369d32a8cb1604a85d008e602e4de24d05
[InstSimplify] add commuted variants of logical and/or pattern; NFC

Existing tests were added with D138853, but that patch failed
to handle all of the commutes. The poison-safety behavior is
symmetric, so I'm not duplicating all of the tests that were
added with that patch.
llvm/test/Transforms/InstSimplify/select-logical.ll