This is an archive of the discontinued LLVM Phabricator instance.

DAG: Add computeKnownBitsForFrameIndex
ClosedPublic

Authored by arsenm on Oct 27 2017, 3:13 AM.

Details

Reviewers
bogner
arsenm
Summary

Some of the AMDGPU stack addressing modes require knowing the sign
bit is zero. We used to accomplish this by custom lowering
frame indexes, and then putting an AssertZext around a
TargetFrameIndex. This required specifically looking for
the AssextZext + frame index pattern which was moderately
disgusting. The same could probably be accomplished
with a target specific node, but would still
require special handling of frame indexes.

Diff Detail

Event Timeline

arsenm created this revision.Oct 27 2017, 3:13 AM
fhahn added a subscriber: fhahn.Nov 2 2017, 1:04 PM
arsenm updated this revision to Diff 121586.Nov 4 2017, 4:25 AM

Add comment, move current handling into default implementation

arsenm accepted this revision.Nov 8 2017, 12:53 AM

r317671

This revision is now accepted and ready to land.Nov 8 2017, 12:53 AM
arsenm closed this revision.Nov 8 2017, 12:53 AM