[PATCH] D149170: [SLP] Account for phi cost in both scalar and vectors
Luke Lau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 10:26:19 PDT 2023
luke added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:7334
for (Value *V : VL) {
- auto *PHI = dyn_cast<PHINode>(V);
- if (!PHI)
- continue;
+ auto *PHI = cast<PHINode>(V);
----------------
I'm assuming here that all VLs must be a PHI at this point. Is this correct?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149170/new/
https://reviews.llvm.org/D149170
More information about the llvm-commits
mailing list