This is an archive of the discontinued LLVM Phabricator instance.

[RS4GC] Look through vector bitcasts when looking for base pointer
ClosedPublic

Authored by dneilson on Oct 12 2017, 9:14 AM.

Details

Summary

In RS4GC it is possible that a base pointer is contained in a vector that
has undergone a bitcast from one element-pointertype to another. We teach
RS4GC how to look through bitcasts of vector types when looking for a base
pointer.

Event Timeline

dneilson created this revision.Oct 12 2017, 9:14 AM
anna added inline comments.Oct 12 2017, 5:02 PM
test/Transforms/RewriteStatepointsForGC/vector-bitcast.ll
20

Could you simplify this to a conditional branch and avoid the use of undef here and below in the call?
Can this be triggered just through straightline code?

dneilson updated this revision to Diff 118905.Oct 13 2017, 7:07 AM

Simplify test case

anna accepted this revision.Oct 13 2017, 8:04 AM

LGTM.

This revision is now accepted and ready to land.Oct 13 2017, 8:04 AM
This revision was automatically updated to reflect the committed changes.