This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix assertion due to assuming pointer in default addr space is 32 bit
ClosedPublic

Authored by yaxunl on Nov 5 2017, 10:34 AM.

Details

Summary

The backend assumes pointer in default addr space is 32 bit, which is not
true for the new addr space mapping and causes assertion for unresolved
functions.

This patch fixes that.

Diff Detail

Event Timeline

yaxunl created this revision.Nov 5 2017, 10:34 AM
arsenm accepted this revision.Nov 5 2017, 3:47 PM

LGTM

lib/Target/AMDGPU/SIISelLowering.cpp
2136

You should be able to just remove this whole block when the triple setting is removed

This revision is now accepted and ready to land.Nov 5 2017, 3:47 PM
yaxunl added inline comments.Nov 5 2017, 6:19 PM
lib/Target/AMDGPU/SIISelLowering.cpp
2136

Yes I will do that.

This revision was automatically updated to reflect the committed changes.