This is an archive of the discontinued LLVM Phabricator instance.

DAG: Set hasCalls on frame info earlier
AbandonedPublic

Authored by arsenm on Apr 11 2017, 3:46 PM.

Details

Reviewers
bogner
Summary

AMDGPU needs to know if calls are present when lowering arguments,
but this was only set later. Set it along with other stack properties.

Diff Detail

Event Timeline

arsenm created this revision.Apr 11 2017, 3:46 PM
arsenm updated this revision to Diff 94904.Apr 11 2017, 4:18 PM

Skip intrinsics

This seems to break a variety of tests in other targets. Maybe a smarter version of isLoweredToCall is needed?

arsenm updated this revision to Diff 94931.Apr 11 2017, 7:27 PM

Make it a target hook.

There are some special cases that make it difficult to make this
test generically. SystemZ emits some libcalls as special instructions,
and this depends on whether the target will end up emitting a
tail call.

arsenm abandoned this revision.Jul 12 2017, 9:01 PM

I found a better solution which avoids needing to predict this from a call