[PATCH] D64700: [SLPVectorizer] [NFC] Avoid repetitive calls to getSameOpcode().

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 13 19:24:40 PDT 2019


dtemirbulatov created this revision.
dtemirbulatov added reviewers: RKSimon, vporpo, ABataev, anton-afanasyev, spatel.
Herald added subscribers: dexonsmith, mehdi_amini.

We can avoid repetitive calls getSameOpcode() for already known tree elements by keeping MainOp and AltOp in TreeEntry. Also, ScalarToTreeEntry key should be at this point not just Value but Instruction.


https://reviews.llvm.org/D64700

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64700.209711.patch
Type: text/x-patch
Size: 30355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190714/c4684789/attachment.bin>


More information about the llvm-commits mailing list