[clang] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)
Sam Tebbs via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 19 07:16:24 PDT 2024
================
@@ -2725,9 +2725,17 @@ class VPAliasLaneMaskRecipe : public VPSingleDefRecipe {
/// Get the VPValue* for the pointer being read from
VPValue *getSourceValue() const { return getOperand(0); }
+ // Get the size of the element(s) accessed by the pointers
+ unsigned getAccessedElementSize() const {
+ return ElementSize;
+ }
+
/// Get the VPValue* for the pointer being stored to
VPValue *getSinkValue() const { return getOperand(1); }
+private:
+ unsigned ElementSize;
+
----------------
SamTebbs33 wrote:
This need to be moved above `public` or below `print`.
https://github.com/llvm/llvm-project/pull/100579
More information about the cfe-commits
mailing list