This is an archive of the discontinued LLVM Phabricator instance.

AMDPGU/SI: Use AssertAnd node to mask high bit for scratch offsets
ClosedPublic

Authored by tstellarAMD on Jul 15 2015, 10:20 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDPGU/SI: Use AssertAnd node to mask high bit for scratch offsets.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Jul 15 2015, 10:30 AM
lib/Target/AMDGPU/SIISelLowering.cpp
824–826 ↗(On Diff #29791)

I think this should be wrapped under a subtarget feature (that defaults to on) and use a more conservative assumption if off. For a name idea -huge-memory-support or something like that

arsenm added inline comments.Jul 15 2015, 10:43 AM
lib/Target/AMDGPU/SIISelLowering.cpp
824–826 ↗(On Diff #29791)

By default to on I mean this should default to happening rather than default the conservative assumption

Updated patch: Use AssertZext instead of AssertAnd and add a subtarget attribute to
control this behavior.

arsenm accepted this revision.Jul 16 2015, 10:20 AM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 16 2015, 10:20 AM
This revision was automatically updated to reflect the committed changes.