This is an archive of the discontinued LLVM Phabricator instance.

SeparateConstOffsetFromGEP: Pass address space to isLegalAddressingMode
ClosedPublic

Authored by arsenm on Jun 5 2015, 6:56 PM.

Details

Reviewers
jingyue
Summary

Ping since this seems to not have actually sent to the list when originally posted

Diff Detail

Event Timeline

arsenm updated this revision to Diff 27250.Jun 5 2015, 6:56 PM
arsenm retitled this revision from to SeparateConstOffsetFromGEP: Pass address space to isLegalAddressingMode.
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
arsenm updated this object.Jun 6 2015, 10:54 AM
arsenm added a reviewer: jingyue.
jingyue edited edge metadata.Jun 6 2015, 1:30 PM

The change itself looks good, but is it based on some WIP? TTI::isLegalAddressingMode doesn't take an address space yet.

test/Transforms/SeparateConstOffsetFromGEP/R600/split-gep-and-gvn-addrspace-addressing-modes.ll
95

Please fix.

arsenm added a comment.Jun 6 2015, 4:29 PM

The change itself looks good, but is it based on some WIP? TTI::isLegalAddressingMode doesn't take an address space yet.

Yes, I have another patch that removes the default value from TargetLowering::isLegalAddressingMode and moves it to TTI until the other uses are removed.

jingyue accepted this revision.Jun 6 2015, 6:33 PM
jingyue edited edge metadata.

LGTM with that patch submitted.

This revision is now accepted and ready to land.Jun 6 2015, 6:33 PM
arsenm closed this revision.Jun 7 2015, 1:22 PM

r239262