[PATCH] D121612: [VPlan] VPInterleaveRecipe only requires the first lane of the address.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 04:57:05 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa6e70e4056df: [VPlan] VPInterleaveRecipe only requires the first lane of the address. (authored by fhahn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121612/new/
https://reviews.llvm.org/D121612
Files:
llvm/lib/Transforms/Vectorize/VPlan.h
Index: llvm/lib/Transforms/Vectorize/VPlan.h
===================================================================
--- llvm/lib/Transforms/Vectorize/VPlan.h
+++ llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1461,6 +1461,13 @@
unsigned getNumStoreOperands() const {
return getNumOperands() - (HasMask ? 2 : 1);
}
+
+ /// The recipe only uses the first lane of the address.
+ bool onlyFirstLaneUsed(const VPValue *Op) const override {
+ assert(is_contained(operands(), Op) &&
+ "Op must be an operand of the recipe");
+ return Op == getAddr();
+ }
};
/// A recipe to represent inloop reduction operations, performing a reduction on
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121612.416138.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/cd8d36df/attachment.bin>
More information about the llvm-commits
mailing list