OSDN Git Service

[StatepointsForGC] Rematerialize in the presence of PHIs
authorAnna Thomas <anna@azul.com>
Mon, 29 Aug 2016 15:41:59 +0000 (15:41 +0000)
committerAnna Thomas <anna@azul.com>
Mon, 29 Aug 2016 15:41:59 +0000 (15:41 +0000)
commit3262806b214068783aa544845ffdf1117fbf6c98
treeab6b6ac14e0d169bc709c8c282461d6513907e81
parentf486ff3a8efe001778093791a03b0a54c5ac37b6
[StatepointsForGC] Rematerialize in the presence of PHIs

Summary:
While walking the use chain for identifying rematerializable values in RS4GC,
add the case where the current value and base value are the same PHI nodes.

This will aid rematerialization of geps and casts instead of relocating.

Reviewers: sanjoy, reames, igor

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
test/Transforms/RewriteStatepointsForGC/rematerialize-derived-pointers.ll