mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-03 06:10:23 +00:00
[SVE] Remove calls to getBitWidth from AArch64
Reviewers: efriedma Reviewed By: efriedma Subscribers: danielkiss, tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77905
This commit is contained in:
parent
ba10840eeb
commit
05a079895c
@ -9196,9 +9196,10 @@ bool AArch64TargetLowering::isExtFreeImpl(const Instruction *Ext) const {
|
||||
/// or upper half of the vector elements.
|
||||
static bool areExtractShuffleVectors(Value *Op1, Value *Op2) {
|
||||
auto areTypesHalfed = [](Value *FullV, Value *HalfV) {
|
||||
auto *FullVT = cast<VectorType>(FullV->getType());
|
||||
auto *HalfVT = cast<VectorType>(HalfV->getType());
|
||||
return FullVT->getBitWidth() == 2 * HalfVT->getBitWidth();
|
||||
auto *FullTy = FullV->getType();
|
||||
auto *HalfTy = HalfV->getType();
|
||||
return FullTy->getPrimitiveSizeInBits().getFixedSize() ==
|
||||
2 * HalfTy->getPrimitiveSizeInBits().getFixedSize();
|
||||
};
|
||||
|
||||
auto extractHalf = [](Value *FullV, Value *HalfV) {
|
||||
|
Loading…
Reference in New Issue
Block a user