1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Transforms/RewriteStatepointsForGC
Daniel Neilson e06efee0cc [RewriteStatepoints] Fix stale parse points
Summary:
RewriteStatepointsForGC collects parse points for further processing.
During the collection if a callsite is found in an unreachable block
(DominatorTree::isReachableFromEntry()) then all unreachable blocks are
removed by removeUnreachableBlocks(). Some of the removed blocks could
have been reachable according to DominatorTree::isReachableFromEntry().
In this case the collected parse points became stale and resulted in a
crash when accessed.

The fix is to unconditionally canonicalize the IR to
removeUnreachableBlocks and then collect the parse points.

The added test crashes with the old version and passes with this patch.

Patch by Yevgeny Rouban!

Reviewed by: Anna

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

llvm-svn: 326748
2018-03-05 22:27:30 +00:00
..
base-pointers-1.ll
base-pointers-2.ll
base-pointers-3.ll
base-pointers-4.ll
base-pointers-5.ll
base-pointers-6.ll
base-pointers-7.ll
base-pointers-8.ll
base-pointers-9.ll
base-pointers-10.ll
base-pointers-11.ll
base-pointers-12.ll
base-pointers-13.ll
base-pointers.ll
base-vector.ll
basic.ll
basics.ll
call-gc-result.ll
check_traversal_order.ll
codegen-cond.ll
constants.ll
deopt-intrinsic-cconv.ll
deopt-intrinsic.ll
deopt-lowering-attrs.ll
deref-pointers.ll
drop-invalid-metadata.ll
gc-relocate-creation.ll
invokes.ll
leaf-function.ll
libcall.ll
live-vector-nosplit.ll
liveness-basics.ll
patchable-statepoints.ll
preprocess.ll
relocate-invoke-result.ll
relocation.ll
rematerialize-derived-pointers.ll
rewrite-invoke.ll
statepoint-attrs.ll
statepoint-calling-conventions.ll
statepoint-coreclr.ll
statepoint-format.ll
two-invokes-one-landingpad.ll
unreachable-regression.ll
vector-bitcast.ll