This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Simplify address space checks in AMDGPUDAGToDAGISel
ClosedPublic

Authored by tstellarAMD on Jun 24 2016, 7:59 AM.

Details

Summary

Get the address space directly from the MemSDNode rather than from
the value associated with the MemOperand. This was broken for the
case when the MemOperand was a PseudoSourceValue.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Simplify address space checks in AMDGPUDAGToDAGISel.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Jun 24 2016, 8:45 AM
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
492–494 ↗(On Diff #61790)

I've been planning on removing these entirely. There's no reason this can't be done in tablegen and some of the address space checks are already there

Replace the c++ functions with TableGen code.

arsenm accepted this revision.Jun 24 2016, 6:40 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jun 24 2016, 6:40 PM
This revision was automatically updated to reflect the committed changes.