mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
c88238ea77
This patch makes Scalarizer to use poison as insertelement's placeholder. It contains two changes in Scalarizer.cpp, and the both changes does not change the semantics of the optimized program. It is because the placeholder value (poison) is already completely hidden by following insertelement instructions. The first change at visitBitCastInst() creates poison vector of MidTy and consecutively inserts FanIn times, which is # of elems of MidTy. The second change at ScalarizerVisitor::finish() creates poison with Op->getType(), and it is filled with Count insertelements. The test diffs show that the poison value is never exposed after insertelements. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D93989 |
||
---|---|---|
.. | ||
basic-inseltpoison.ll | ||
basic.ll | ||
cache-bug.ll | ||
constant-extractelement.ll | ||
constant-insertelement.ll | ||
crash-bug.ll | ||
dbginfo.ll | ||
dbgloc-bug-inseltpoison.ll | ||
dbgloc-bug.ll | ||
global-bug-2.ll | ||
global-bug.ll | ||
intrinsics.ll | ||
order-bug-inseltpoison.ll | ||
order-bug.ll | ||
phi-bug-inseltpoison.ll | ||
phi-bug.ll | ||
phi-unreachable-pred.ll | ||
scatter-order.ll | ||
store-bug.ll | ||
variable-extractelement.ll | ||
variable-insertelement.ll | ||
vector-gep.ll |