llvm-project/llvm/test/Transforms/RewriteStatepointsForGC
Igor Laevsky df9db45c94 [RewriteStatepointsForGC] All constant should have null base pointer
Currently we consider that each constant has itself as a base value. I.e "base(const) = const". 
This introduces couple of problems when we are trying to avoid reporting constants in statepoint live sets:

1. When querying "base( phi(const1, const2) )" we will get "phi(const1, const2)" as a base pointer. Since 
   it's not a constant we will record it in a stack map. However on practice we don't want this to happen
   (constant are never relocated).
2. base( phi(const, gc ptr) ) = phi( const, base(gc ptr) ). This particular case imposes challenge on our 
   runtime - we don't expect to see constant base pointers other than null. This problems can be avoided 
   by treating all constant as if they were derived from null pointer base. I.e in a first case we will 
   not include constant pointer in a stack map at all. In a second case we will get "phi(null, base(gc ptr))" 
   as a base pointer which is a lot more convenient.

Differential Revision: http://reviews.llvm.org/D20584

llvm-svn: 270993
2016-05-27 13:13:59 +00:00
..
base-pointers-1.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-2.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-3.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-4.ll [RS4GC] Revert optimization attempt due to memory corruption 2016-02-22 20:45:56 +00:00
base-pointers-5.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-6.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-7.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-8.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-9.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-10.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-11.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
base-pointers-12.ll [RewriteStatepointsForGC] All constant should have null base pointer 2016-05-27 13:13:59 +00:00
base-pointers-13.ll [RewriteStatepointsForGC] All constant should have null base pointer 2016-05-27 13:13:59 +00:00
base-pointers.ll [RS4GC] Revert optimization attempt due to memory corruption 2016-02-22 20:45:56 +00:00
base-vector.ll [RewriteStatepointsForGC] All constant should have null base pointer 2016-05-27 13:13:59 +00:00
basic.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
basics.ll [RS4GC] Use SetVector/MapVector instead of DenseSet/DenseMap to guarantee stable ordering 2016-05-04 14:55:36 +00:00
call-gc-result.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
codegen-cond.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
constants.ll [RewriteStatepointsForGC] All constant should have null base pointer 2016-05-27 13:13:59 +00:00
deopt-intrinsic-cconv.ll All llvm.deoptimize declarations must use the same calling convention 2016-05-12 01:17:38 +00:00
deopt-intrinsic.ll All llvm.deoptimize declarations must use the same calling convention 2016-05-12 01:17:38 +00:00
deref-pointers.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
gc-relocate-creation.ll [RS4GC] Remove unnecessary redirections from tests; NFC 2016-01-29 16:32:30 +00:00
invokes.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
leaf-function.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
live-vector-nosplit.ll [RS4GC] "Constant fold" the rs4gc-split-vector-values flag 2016-02-22 21:01:28 +00:00
liveness-basics.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
patchable-statepoints.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
preprocess.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
relocate-invoke-result.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
relocation.ll [RS4GC] Remove unnecessary redirections from tests; NFC 2016-01-29 16:32:30 +00:00
rematerialize-derived-pointers.ll [RS4GC] Use SetVector/MapVector instead of DenseSet/DenseMap to guarantee stable ordering 2016-05-04 14:55:36 +00:00
rewrite-invoke.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
statepoint-calling-conventions.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
statepoint-coreclr.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00
statepoint-format.ll [RS4GC] Use SetVector/MapVector instead of DenseSet/DenseMap to guarantee stable ordering 2016-05-04 14:55:36 +00:00
two-invokes-one-landingpad.ll [RS4GC] Clamp UseDeoptBundles to true and update tests 2016-01-29 00:28:57 +00:00