[DAG] SelectionDAG::isSplatValue - handle OR/XOR cases
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 7 Feb 2021 13:27:57 +0000 (13:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 7 Feb 2021 13:27:57 +0000 (13:27 +0000)
commit86dabf4226af2dac9c62468ff5000ea93cbec764
tree7fbd4919bd5d27285a64b98a8fab0162f3696b94
parent598ceb25d4a42b6a814b2acc5e7ce5c73d6b8fb7
[DAG] SelectionDAG::isSplatValue - handle OR/XOR cases

Add OR/XOR to the basic binops that we support when checking for a splat vector value
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/vector-fshl-128.ll
llvm/test/CodeGen/X86/vector-fshl-256.ll
llvm/test/CodeGen/X86/vector-fshl-512.ll
llvm/test/CodeGen/X86/vector-fshr-128.ll
llvm/test/CodeGen/X86/vector-fshr-256.ll
llvm/test/CodeGen/X86/vector-fshr-512.ll