[PATCH] D96019: [LoopVectorize] NFC: Change selectVectorizationFactor to work on ElementCount.
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 8 03:34:53 PST 2021
david-arm added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:5814
assert(C.first.isValid() && "Unexpected invalid cost for vector loop");
- float VectorCost = *C.first.getValue() / (float)i;
+ float VectorCost = *C.first.getValue() / (float)i.getKnownMinValue();
LLVM_DEBUG(dbgs() << "LV: Vector loop of width " << i
----------------
Perhaps this should be getFixedValue() since it can never be scalable?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96019/new/
https://reviews.llvm.org/D96019
More information about the llvm-commits
mailing list