aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorCullen Rhodes <cullen.rhodes@arm.com>2021-12-07 09:20:42 +0000
committerCullen Rhodes <cullen.rhodes@arm.com>2021-12-07 09:52:21 +0000
commit698584f89b8f8bd7f6c2d2cd61efb5548857da2a (patch)
treeb8c205bc3f0758b5230d728b0a3148b42b0d96eb /llvm/lib/IR/Attributes.cpp
parent978431e80b6155878d8d5b4fc7a67c90af317c01 (diff)
downloadllvm-698584f89b8f8bd7f6c2d2cd61efb5548857da2a.zip
llvm-698584f89b8f8bd7f6c2d2cd61efb5548857da2a.tar.gz
llvm-698584f89b8f8bd7f6c2d2cd61efb5548857da2a.tar.bz2
[IR] Remove unbounded as possible value for vscale_range minimum
The default for min is changed to 1. The behaviour of -mvscale-{min,max} in Clang is also changed such that 16 is the max vscale when targeting SVE and no max is specified. Reviewed By: sdesmalen, paulwalker-arm Differential Revision: https://reviews.llvm.org/D113294
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index f81a446..d0bc53b 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -719,7 +719,7 @@ std::pair<unsigned, Optional<unsigned>> AttributeSet::getAllocSizeArgs() const {
std::pair<unsigned, unsigned> AttributeSet::getVScaleRangeArgs() const {
return SetNode ? SetNode->getVScaleRangeArgs()
- : std::pair<unsigned, unsigned>(0, 0);
+ : std::pair<unsigned, unsigned>(1, 0);
}
std::string AttributeSet::getAsString(bool InAttrGrp) const {
@@ -900,7 +900,7 @@ AttributeSetNode::getAllocSizeArgs() const {
std::pair<unsigned, unsigned> AttributeSetNode::getVScaleRangeArgs() const {
if (auto A = findEnumAttribute(Attribute::VScaleRange))
return A->getVScaleRangeArgs();
- return std::make_pair(0, 0);
+ return std::make_pair(1, 0);
}
std::string AttributeSetNode::getAsString(bool InAttrGrp) const {