[PATCH] D125712: [SLP][X86] Improve reordering to consider alternate instruction bundles
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 11:01:33 PDT 2022
vporpo created this revision.
vporpo added reviewers: vdmitrie, ABataev, dmgreen, RKSimon.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
During the reordering transformation we should try to avoid reordering bundles
like fadd,fsub because this may block them being matched into a single vector
instruction in x86.
We do this by checking if a TreeEntry is such a pattern and adding it to the
list of TreeEntries with orders that need to be considered.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125712
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/reorder_with_external_users.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125712.429788.patch
Type: text/x-patch
Size: 10711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220516/adf874c6/attachment.bin>
More information about the llvm-commits
mailing list