]> granicus.if.org Git - llvm/commit
[DAGCombiner] fold vselect-of-constants to shift
authorSanjay Patel <spatel@rotateright.com>
Fri, 11 Oct 2019 14:17:56 +0000 (14:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 11 Oct 2019 14:17:56 +0000 (14:17 +0000)
commitf2c20cc531e80a0a3c16e742170e9086fa2e4dbc
tree03292fda732edbe16c86f5058dd19561e2bbd344
parentc0b9840743915a974e6daf5a6d332d4f3599b470
[DAGCombiner] fold vselect-of-constants to shift

The diffs suggest that we are missing some more basic
analysis/transforms, but this keeps the vector path in
sync with the scalar (rL374397). This is again a
preliminary step for introducing the reverse transform
in IR as proposed in D63382.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374555 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/selectcc-to-shiftand.ll
test/CodeGen/X86/vselect.ll