Change this DAGCombine to build AND of SHR instead of SHR of AND; this matches the...
authorEli Friedman <eli.friedman@gmail.com>
Thu, 9 Jun 2011 22:14:44 +0000 (22:14 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 9 Jun 2011 22:14:44 +0000 (22:14 +0000)
commit2a6d9eb10bc268df18ff57531c34b8928f858471
tree2a4bd7716cb6d103ddc7eee4359a98f7c274ee96
parenta899b223109ca5dba7b44439e955148a03f23d4c
Change this DAGCombine to build AND of SHR instead of SHR of AND; this matches the ordering we prefer in instcombine.  Part of rdar://9562809.

The potential DAGCombine which enforces this more generally messes up some other very fragile patterns, so I'm leaving that alone, at least for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132809 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/shift-pair.ll [new file with mode: 0644]