[X86] Don't check for VBROADCAST_LOAD being a user of the source of a VBROADCAST...
commit7fc27db442426561348209b1e7301407ef38770d
authorCraig Topper <craig.topper@intel.com>
Tue, 15 Oct 2019 06:10:11 +0000 (15 06:10 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 15 Oct 2019 06:10:11 +0000 (15 06:10 +0000)
treecb356b8539f1c8ec399a8e8856fdca4d1c2fd559
parent17fd40d871a542f30acee2efe0a203f37fbc5797
[X86] Don't check for VBROADCAST_LOAD being a user of the source of a VBROADCAST when trying to share broadcasts.

The only things VBROADCAST_LOAD uses is an address and a chain
node. It has no vector inputs.

So if its a user of the source of another broadcast that could
only mean one of two things. The other broadcast is broadcasting
the address of the broadcast_load. Or the source is a load and
the use we're seeing is the chain result from that load. Neither
of these cases make sense to combine here.

This issue was reported post-commit r373871. Test case has not
been reduced yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp