mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Remove FIXMEs surrounding Constant[Data]Vectors, instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169938 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e202f8c3ee
commit
08b25ce0a1
@ -98,19 +98,13 @@ struct apint_match {
|
|||||||
Res = &CI->getValue();
|
Res = &CI->getValue();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// FIXME: Remove this.
|
if (V->getType()->isVectorTy())
|
||||||
if (ConstantVector *CV = dyn_cast<ConstantVector>(V))
|
if (const Constant *C = dyn_cast<Constant>(V))
|
||||||
if (ConstantInt *CI =
|
if (ConstantInt *CI =
|
||||||
dyn_cast_or_null<ConstantInt>(CV->getSplatValue())) {
|
dyn_cast_or_null<ConstantInt>(C->getSplatValue())) {
|
||||||
Res = &CI->getValue();
|
Res = &CI->getValue();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ConstantDataVector *CV = dyn_cast<ConstantDataVector>(V))
|
|
||||||
if (ConstantInt *CI =
|
|
||||||
dyn_cast_or_null<ConstantInt>(CV->getSplatValue())) {
|
|
||||||
Res = &CI->getValue();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -151,13 +145,11 @@ struct cst_pred_ty : public Predicate {
|
|||||||
bool match(ITy *V) {
|
bool match(ITy *V) {
|
||||||
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V))
|
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V))
|
||||||
return this->isValue(CI->getValue());
|
return this->isValue(CI->getValue());
|
||||||
// FIXME: Remove this.
|
if (V->getType()->isVectorTy())
|
||||||
if (const ConstantVector *CV = dyn_cast<ConstantVector>(V))
|
if (const Constant *C = dyn_cast<Constant>(V))
|
||||||
if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()))
|
if (const ConstantInt *CI =
|
||||||
return this->isValue(CI->getValue());
|
dyn_cast_or_null<ConstantInt>(C->getSplatValue()))
|
||||||
if (const ConstantDataVector *CV = dyn_cast<ConstantDataVector>(V))
|
return this->isValue(CI->getValue());
|
||||||
if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()))
|
|
||||||
return this->isValue(CI->getValue());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -175,21 +167,13 @@ struct api_pred_ty : public Predicate {
|
|||||||
Res = &CI->getValue();
|
Res = &CI->getValue();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (V->getType()->isVectorTy())
|
||||||
// FIXME: remove.
|
if (const Constant *C = dyn_cast<Constant>(V))
|
||||||
if (const ConstantVector *CV = dyn_cast<ConstantVector>(V))
|
if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(C->getSplatValue()))
|
||||||
if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()))
|
if (this->isValue(CI->getValue())) {
|
||||||
if (this->isValue(CI->getValue())) {
|
Res = &CI->getValue();
|
||||||
Res = &CI->getValue();
|
return true;
|
||||||
return true;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (const ConstantDataVector *CV = dyn_cast<ConstantDataVector>(V))
|
|
||||||
if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()))
|
|
||||||
if (this->isValue(CI->getValue())) {
|
|
||||||
Res = &CI->getValue();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user