llvm.org GIT mirror llvm / a1902a1
Don't create VBROADCAST nodes if any nodes use the chain result from the load. Fixes PR11900. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149478 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 7 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
49944994
49954995 // The scalar source must be a normal load.
49964996 if (!ISD::isNormalLoad(Ld.getNode()))
4997 return SDValue();
4998
4999 // Reject loads that have uses of the chain result
5000 if (Ld->hasAnyUseOfValue(1))
49975001 return SDValue();
49985002
49995003 bool Is256 = VT.getSizeInBits() == 256;