[PATCH] D157322: [VPlan] Initial modeling of runtime VF * UF as VPValue.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 07:19:45 PDT 2023


ABataev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.h:2543
+  /// Returns runtime VF * UF for the vector loop region.
+  VPValue &getRuntimeVFxUF() { return RuntimeVFxUF; }
+
----------------
fhahn wrote:
> ABataev wrote:
> > const member function
> Unfortunately this causes problems with various users which expect non-const return value.
But can you return non-const return value but using const function?
Like
```
VPValue &getRuntimeVFxUF() const {return RuntimeVFxUF;}
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157322/new/

https://reviews.llvm.org/D157322



More information about the llvm-commits mailing list