[PhaseOrdering] add tests for vector select; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 14 Dec 2021 19:15:14 +0000 (14:15 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 14 Dec 2021 19:35:10 +0000 (14:35 -0500)
commitfd5e493874e1e288daf8d19a038f7db3a897359f
treef59b02c389262944e27dc0cee65f7a38fac38a4f
parentefefc4ee3b25ca180e3be84491f19218d995c788
[PhaseOrdering] add tests for vector select; NFC

The 1st test corresponds to a minimally optimized (mem2reg)
version of the example in:
issue #52631

The 2nd test copies an existing instcombine test with the
same pattern. If we canonicalize differently, we can miss
reducing to minimal form in a single invocation of
-instcombine, but that should not escape the normal opt
pipeline.
llvm/test/Transforms/InstCombine/and.ll
llvm/test/Transforms/PhaseOrdering/vector-select.ll [new file with mode: 0644]