mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[SVE] Eliminate calls to default-false VectorType::get() from Instrumentation
Reviewers: efriedma, fpetrogalli, kmclaughlin Reviewed By: fpetrogalli Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80335
This commit is contained in:
parent
44cab37793
commit
18edd6a22b
@ -1409,7 +1409,7 @@ void DFSanFunction::storeShadow(Value *Addr, uint64_t Size, Align Alignment,
|
||||
const unsigned ShadowVecSize = 128 / DFS.ShadowWidthBits;
|
||||
uint64_t Offset = 0;
|
||||
if (Size >= ShadowVecSize) {
|
||||
VectorType *ShadowVecTy = VectorType::get(DFS.ShadowTy, ShadowVecSize);
|
||||
auto *ShadowVecTy = FixedVectorType::get(DFS.ShadowTy, ShadowVecSize);
|
||||
Value *ShadowVec = UndefValue::get(ShadowVecTy);
|
||||
for (unsigned i = 0; i != ShadowVecSize; ++i) {
|
||||
ShadowVec = IRB.CreateInsertElement(
|
||||
|
@ -1374,8 +1374,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||
const DataLayout &DL = F.getParent()->getDataLayout();
|
||||
if (VectorType *VT = dyn_cast<VectorType>(OrigTy)) {
|
||||
uint32_t EltSize = DL.getTypeSizeInBits(VT->getElementType());
|
||||
return VectorType::get(IntegerType::get(*MS.C, EltSize),
|
||||
VT->getNumElements());
|
||||
return FixedVectorType::get(IntegerType::get(*MS.C, EltSize),
|
||||
VT->getNumElements());
|
||||
}
|
||||
if (ArrayType *AT = dyn_cast<ArrayType>(OrigTy)) {
|
||||
return ArrayType::get(getShadowTy(AT->getElementType()),
|
||||
@ -2756,8 +2756,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||
const unsigned X86_MMXSizeInBits = 64;
|
||||
assert(EltSizeInBits != 0 && (X86_MMXSizeInBits % EltSizeInBits) == 0 &&
|
||||
"Illegal MMX vector element size");
|
||||
return VectorType::get(IntegerType::get(*MS.C, EltSizeInBits),
|
||||
X86_MMXSizeInBits / EltSizeInBits);
|
||||
return FixedVectorType::get(IntegerType::get(*MS.C, EltSizeInBits),
|
||||
X86_MMXSizeInBits / EltSizeInBits);
|
||||
}
|
||||
|
||||
// Returns a signed counterpart for an (un)signed-saturate-and-pack
|
||||
|
Loading…
Reference in New Issue
Block a user