1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[Hexagon] Forgot about HexagonISD::VZERO in selecting const vectors

llvm-svn: 324244
This commit is contained in:
Krzysztof Parzyszek 2018-02-05 15:52:54 +00:00
parent e519378660
commit 24456c87b2

View File

@ -926,7 +926,7 @@ bool HvxSelector::selectVectorConstants(SDNode *N) {
if (N->isMachineOpcode())
return false;
unsigned Opc = N->getOpcode();
if (Opc == HexagonISD::VSPLAT)
if (Opc == HexagonISD::VSPLAT || Opc == HexagonISD::VZERO)
return true;
if (Opc == ISD::BITCAST) {
// Only select bitcasts of VSPLATs.