[all-commits] [llvm/llvm-project] 7ff0fc: [x86] add cost model special-case for insert/extra...
RotateRight via All-commits
all-commits at lists.llvm.org
Fri Dec 6 10:50:30 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7ff0fcb53f6e71bc22d37494fdfa68bbf2d3709b
https://github.com/llvm/llvm-project/commit/7ff0fcb53f6e71bc22d37494fdfa68bbf2d3709b
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/X86/fptosi.ll
M llvm/test/Analysis/CostModel/X86/fptoui.ll
M llvm/test/Analysis/CostModel/X86/shuffle-extract_subvector.ll
M llvm/test/Analysis/CostModel/X86/vector-extract.ll
Log Message:
-----------
[x86] add cost model special-case for insert/extract from element 0
This is a follow-up to D70607 where we made any
extract element on SLM more costly than default. But that is
pessimistic for extract from element 0 because that corresponds
to x86 movd/movq instructions. These generally have >1 cycle
latency, but they are probably implemented as single uop
instructions.
Note that no vectorization tests are affected by this change.
Also, no targets besides SLM are affected because those are
falling through to the default cost of 1 anyway. But this will
become visible/important if we add more specializations via cost
tables.
Differential Revision: https://reviews.llvm.org/D71023
More information about the All-commits
mailing list