[llvm] [AArch64][CostModel] Consider the cost of const vector (PR #117539)
Sushant Gokhale via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 00:01:14 PST 2024
================
@@ -11019,8 +11039,6 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
bool NeedToShuffleReuses = !E->ReuseShuffleIndices.empty();
if (E->isGather()) {
- if (allConstant(VL))
- return 0;
----------------
sushgokh wrote:
On the other hand, if I remove this code, I am able to calculate the const cost using a single call and a single SPI. This is lot too easy.
https://github.com/llvm/llvm-project/pull/117539
More information about the llvm-commits
mailing list