[PATCH] D121354: [SLP] Fix lookahead operand reordering for splat loads.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 23:37:33 PST 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:1121
+ if (V1 == V2) {
+ if (isa<LoadInst>(V1) && isa<LoadInst>(V2) && NumLanes == 2)
+ return VLOperands::ScoreSplatLoads;
----------------
why test both V1 and V2 if we know they are the same value?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121354/new/
https://reviews.llvm.org/D121354
More information about the llvm-commits
mailing list