[X86] Add combine to shrink 64-bit ands when one input is an any_extend and the other...
authorCraig Topper <craig.topper@intel.com>
Tue, 13 Feb 2018 16:25:25 +0000 (16:25 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 13 Feb 2018 16:25:25 +0000 (16:25 +0000)
commit036789a7e871ae898ee6dc317cf8e70b86d54ef2
tree5d430c6562c29afb7453e7c11a3da69c7f78551c
parentd49866edba5dff7b3b28cbf4c9729f48fa976c1c
[X86] Add combine to shrink 64-bit ands when one input is an any_extend and the other input guarantees upper 32 bits are 0.

Summary: This gets the shift case from PR35792.

Reviewers: spatel, RKSimon

Reviewed By: RKSimon

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D43222

llvm-svn: 325018
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/bmi.ll
llvm/test/CodeGen/X86/gather-addresses.ll
llvm/test/CodeGen/X86/pr32284.ll