Skip to content

Commit 2b946f2

Browse files
committed
fix for scalable vector
1 parent 8ad7d9a commit 2b946f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5648,8 +5648,9 @@ bool SelectionDAG::isGuaranteedNotToBeUndefOrPoison(SDValue Op,
56485648
Depth + 1);
56495649
}
56505650

5651-
// Case 2: Vector -> Scalar
5652-
if (SrcVT.isVector() && !TgtVT.isVector())
5651+
// Case 2: Vector -> Scalar, or Scalable Vector -> Scalable Vector
5652+
if ((SrcVT.isVector() && !TgtVT.isVector()) ||
5653+
(SrcVT.isScalableVT() && TgtVT.isScalableVT()))
56535654
return isGuaranteedNotToBeUndefOrPoison(Src, PoisonOnly, Depth + 1);
56545655

56555656
// Case 3: Vector -> Vector

0 commit comments

Comments
 (0)