mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[SVE] Eliminate calls to default-false VectorType::get() from llvm-stress
Reviewers: efriedma, kmclaughlin, sdesmalen, MaskRay, JDevlieghere Reviewed By: sdesmalen Subscribers: tschuett, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81201
This commit is contained in:
parent
dd58c7c579
commit
3002df6d3f
@ -300,7 +300,7 @@ protected:
|
|||||||
|
|
||||||
if (len != (unsigned)-1)
|
if (len != (unsigned)-1)
|
||||||
width = len;
|
width = len;
|
||||||
return VectorType::get(Ty, width);
|
return FixedVectorType::get(Ty, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Pick a random scalar type.
|
/// Pick a random scalar type.
|
||||||
@ -628,9 +628,10 @@ struct SelectModifier: public Modifier {
|
|||||||
|
|
||||||
// If the value type is a vector, and we allow vector select, then in 50%
|
// If the value type is a vector, and we allow vector select, then in 50%
|
||||||
// of the cases generate a vector select.
|
// of the cases generate a vector select.
|
||||||
if (Val0->getType()->isVectorTy() && (getRandom() % 1)) {
|
if (isa<FixedVectorType>(Val0->getType()) && (getRandom() % 1)) {
|
||||||
unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements();
|
unsigned NumElem =
|
||||||
CondTy = VectorType::get(CondTy, NumElem);
|
cast<FixedVectorType>(Val0->getType())->getNumElements();
|
||||||
|
CondTy = FixedVectorType::get(CondTy, NumElem);
|
||||||
}
|
}
|
||||||
|
|
||||||
Value *Cond = getRandomValue(CondTy);
|
Value *Cond = getRandomValue(CondTy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user