diff options
author | Michael Maitland <michaeltmaitland@gmail.com> | 2024-04-01 15:06:10 -0700 |
---|---|---|
committer | Michael Maitland <michaeltmaitland@gmail.com> | 2024-04-01 15:09:09 -0700 |
commit | 1d5e5f4d3c68e63ced47ee9b17d62fb995aa1e62 (patch) | |
tree | fce7864dad28da1bf164f0d1538fc37af6f2a3d3 | |
parent | 0478adc97e1a4018d866520cb149b6e6c2a9101a (diff) | |
download | llvm-1d5e5f4d3c68e63ced47ee9b17d62fb995aa1e62.zip llvm-1d5e5f4d3c68e63ced47ee9b17d62fb995aa1e62.tar.gz llvm-1d5e5f4d3c68e63ced47ee9b17d62fb995aa1e62.tar.bz2 |
[GISEL][NFC] Fix comment for widenScalarToNextPow2
The docstring for this function incorrectly specified when a widening is
not performed. This patch adds the additional specification for what
happens when the type size is a power of two but it is less than MinSize.
-rw-r--r-- | llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h b/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h index 6afaea3f..82e713f 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h @@ -879,7 +879,8 @@ public: } /// Widen the scalar to the next power of two that is at least MinSize. - /// No effect if the type is not a scalar or is a power of two. + /// No effect if the type is a power of two, except if the type is smaller + /// than MinSize, or if the type is a vector type. LegalizeRuleSet &widenScalarToNextPow2(unsigned TypeIdx, unsigned MinSize = 0) { using namespace LegalityPredicates; |