Use TTI::getPHICost to work out the cost of a phi instruction for
scalars and vectors, because they may not be free. Specifically, if the
phi has constant operands, there may be a cost to materializing them.
Details
Details
- Reviewers
ABataev RKSimon craig.topper reames
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
7334 | I'm assuming here that all VLs must be a PHI at this point. Is this correct? |
Comment Actions
After discussing offline with @reames, we're not sure if this is the most accurate way to model constant costs in phi nodes. Moving it off the review queue for the meantime
I'm assuming here that all VLs must be a PHI at this point. Is this correct?