[DAG] simplifySelect - add support for vselect(0, T, F) -> F fold
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Nov 2022 13:11:04 +0000 (13:11 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Nov 2022 13:11:14 +0000 (13:11 +0000)
commita92f5a08a1eba6a79119d15b4ef6fcc23da48699
treeaee0bc10e058f7b6943f89cf5cedaf7287662f1f
parent2a6d4c5d8a4c445053bf45e08eaf7d53ed38fd1e
[DAG] simplifySelect - add support for vselect(0, T, F) -> F fold

We still need to add handling for the non-zero T fold (which requires getBooleanContents handling)
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/vselect-avx.ll