summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
diff options
context:
space:
mode:
authorVolkan Keles <vkeles@apple.com>2018-10-25 17:37:07 +0000
committerVolkan Keles <vkeles@apple.com>2018-10-25 17:37:07 +0000
commitf87473fe1c2a94bce0f84b54715508157c8f5bee (patch)
tree71798aa513971a1dc35b8f4da968c777b774d548 /llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
parent51b58d6c13325753115dad99011aad1787f19785 (diff)
downloadbcm5719-llvm-f87473fe1c2a94bce0f84b54715508157c8f5bee.tar.gz
bcm5719-llvm-f87473fe1c2a94bce0f84b54715508157c8f5bee.zip
[GISel] LegalizerInfo: Rename MemDesc::Size to SizeInBits to make the value clearer
Requested in D53679. llvm-svn: 345288
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp b/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
index 344f573a67f..94eab9ae00c 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
@@ -45,7 +45,7 @@ LegalityPredicate LegalityPredicates::typePairAndMemSizeInSet(
SmallVector<TypePairAndMemSize, 4> TypesAndMemSize = TypesAndMemSizeInit;
return [=](const LegalityQuery &Query) {
TypePairAndMemSize Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1],
- Query.MMODescrs[MMOIdx].Size};
+ Query.MMODescrs[MMOIdx].SizeInBits};
return std::find(TypesAndMemSize.begin(), TypesAndMemSize.end(), Match) !=
TypesAndMemSize.end();
};
@@ -82,7 +82,7 @@ LegalityPredicate LegalityPredicates::sizeNotPow2(unsigned TypeIdx) {
LegalityPredicate LegalityPredicates::memSizeInBytesNotPow2(unsigned MMOIdx) {
return [=](const LegalityQuery &Query) {
- return !isPowerOf2_32(Query.MMODescrs[MMOIdx].Size /* In Bytes */);
+ return !isPowerOf2_32(Query.MMODescrs[MMOIdx].SizeInBits / 8);
};
}
OpenPOWER on IntegriCloud