[llvm] [SCEV] Use power of two facts involving vscale when inferring wrap flags (PR #101380)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 11:49:11 PDT 2024


================
@@ -10845,6 +10843,25 @@ bool ScalarEvolution::isKnownNonZero(const SCEV *S) {
   return getUnsignedRangeMin(S) != 0;
 }
 
+bool ScalarEvolution::isKnownToBeAPowerOfTwo(const SCEV *S, bool OrZero) {
+  auto nonRecursive = [this](const SCEV *S) {
----------------
nikic wrote:

```suggestion
  auto NonRecursive = [this](const SCEV *S) {
```

https://github.com/llvm/llvm-project/pull/101380


More information about the llvm-commits mailing list