[clang] [llvm] [LLVM][SROA] Teach SROA how to "bitcast" between fixed and scalable vectors. (PR #130973)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 20 10:32:39 PDT 2025
================
@@ -473,6 +473,14 @@ std::optional<unsigned> Attribute::getVScaleRangeMax() const {
return unpackVScaleRangeArgs(pImpl->getValueAsInt()).second;
}
+unsigned Attribute::getVScaleValue() const {
+ std::optional<unsigned> VScale = getVScaleRangeMax();
+ if (VScale && *VScale == getVScaleRangeMin())
+ return *VScale;
+
+ return 0;
+}
----------------
paulwalker-arm wrote:
Done.
https://github.com/llvm/llvm-project/pull/130973
More information about the llvm-commits
mailing list