hanchenye-llvm-project/llvm/test/Transforms/RewriteStatepointsForGC
Daniel Neilson 82daad31fe [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 [RS4GC] Handle call/invoke instructions as base defining values of vectors 2018-01-30 14:43:41 +00:00
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 [IR] Fix creating mutable versions of TBAA access tags 2018-02-13 14:44:25 +00:00
drop-invalid-metadata.ll
gc-relocate-creation.ll
invokes.ll [RS4GC] Handle call/invoke instructions as base defining values of vectors 2018-01-30 14:43:41 +00:00
leaf-function.ll
libcall.ll
live-vector-nosplit.ll
liveness-basics.ll
patchable-statepoints.ll
preprocess.ll
relocate-invoke-result.ll
relocation.ll [RewriteStatepoints] Fix stale parse points 2018-03-05 22:27:30 +00:00
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 [RewriteStatepoints] Fix stale parse points 2018-03-05 22:27:30 +00:00
vector-bitcast.ll [RewriteStatepoints] Fix stale parse points 2018-03-05 22:27:30 +00:00