1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/Transforms/LoopVectorize/X86
Matthew Simpson aa3b094d0c [LV] Scalarize operands of predicated instructions
This patch attempts to scalarize the operand expressions of predicated
instructions if they were conditionally executed in the original loop. After
scalarization, the expressions will be sunk inside the blocks created for the
predicated instructions. The transformation essentially performs
un-if-conversion on the operands.

The cost model has been updated to determine if scalarization is profitable. It
compares the cost of a vectorized instruction, assuming it will be
if-converted, to the cost of the scalarized instruction, assuming that the
instructions corresponding to each vector lane will be sunk inside a predicated
block, possibly avoiding execution. If it's more profitable to scalarize the
entire expression tree feeding the predicated instruction, the expression will
be scalarized; otherwise, it will be vectorized. We only consider the cost of
the entire expression to accurately estimate the cost of the required
insertelement and extractelement instructions.

Differential Revision: https://reviews.llvm.org/D26083

llvm-svn: 288909
2016-12-07 15:03:32 +00:00
..
already-vectorized.ll
assume.ll
avx1.ll
avx512.ll
constant-vector-operand.ll
conversion-cost.ll
cost-model.ll
float-induction-x86.ll
force-ifcvt.ll
fp32_to_uint32-cost-model.ll
fp64_to_uint32-cost-model.ll
fp_to_sint8-cost-model.ll
funclet.ll
gather_scatter.ll
gather-cost.ll Second attempt at r285517. 2016-10-31 13:17:31 +00:00
gcc-examples.ll
illegal-parallel-loop-uniform-write.ll
imprecise-through-phis.ll
int128_no_gather.ll
interleaving.ll
lit.local.cfg
masked_load_store.ll
max-mstore.ll
metadata-enable.ll
min-trip-count-switch.ll
no_fpmath_with_hotness.ll [LV] Stop saying "use -Rpass-analysis=loop-vectorize" 2016-11-11 22:51:46 +00:00
no_fpmath.ll [LV] Stop saying "use -Rpass-analysis=loop-vectorize" 2016-11-11 22:51:46 +00:00
no-vector.ll
parallel-loops-after-reg2mem.ll
parallel-loops.ll
powof2div.ll
propagate-metadata.ll
ptr-indvar-crash.ll
rauw-bug.ll
reduction-crash.ll
reg-usage-debug.ll [LoopVectorizer] When estimating reg usage, unused insts may "end" another use 2016-11-15 14:27:33 +00:00
reg-usage.ll [LoopVectorizer] When estimating reg usage, unused insts may "end" another use 2016-11-15 14:27:33 +00:00
register-assumption.ll
scatter_crash.ll
small-size.ll
struct-store.ll
svml-calls.ll
tripcount.ll
uint64_to_fp64-cost-model.ll
uniform_load.ll
uniform-phi.ll
uniformshift.ll
unroll_selection.ll
unroll-pm.ll
unroll-small-loops.ll
veclib-calls.ll
vect.omp.force.ll
vect.omp.force.small-tc.ll
vector_max_bandwidth.ll [X86][AVX] Fixed v16i16/v32i8 ADD/SUB costs on AVX1 subtargets 2016-11-14 14:45:16 +00:00
vector_ptr_load_store.ll
vector-scalar-select-cost.ll
vectorization-remarks-loopid-dbg.ll
vectorization-remarks-missed.ll [LV] Stop saying "use -Rpass-analysis=loop-vectorize" 2016-11-11 22:51:46 +00:00
vectorization-remarks-profitable.ll
vectorization-remarks.ll
vectorize-only-for-real.ll
x86_fp80-vector-store.ll
x86-predication.ll [LV] Scalarize operands of predicated instructions 2016-12-07 15:03:32 +00:00