This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Implement select() for 32-bit G_FPTOUI
ClosedPublic

Authored by tstellar on Apr 20 2018, 7:22 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellar created this revision.Apr 20 2018, 7:22 AM
nhaehnle accepted this revision.Apr 23 2018, 4:03 AM

One bikeshed, apart of that LGTM.

test/CodeGen/AMDGPU/GlobalISel/inst-select-fptoui.mir
20–26 ↗(On Diff #143312)

I personally find the check lines easy to miss when they're indented like that and would prefer them to start at column 0. Admittedly I haven't checked the style elsewhere in LLVM.

This revision is now accepted and ready to land.Apr 23 2018, 4:03 AM
tstellar updated this revision to Diff 143676.Apr 23 2018, 8:42 PM

Rewrote the pactch to use the TableGen'd instruction selector.

tstellar added inline comments.Apr 23 2018, 8:43 PM
test/CodeGen/AMDGPU/GlobalISel/inst-select-fptoui.mir
20–26 ↗(On Diff #143312)

YAML syntax does not allow this unfortunately.

Looks reasonable.

lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
535–537 ↗(On Diff #143676)

I assume the intention is to make this the default as soon as it works for all?

tstellar added inline comments.Apr 25 2018, 1:14 PM
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
535–537 ↗(On Diff #143676)

Yes, once I have a testing baseline, and it doesn't cause regressions, I will make it default.

arsenm added inline comments.Apr 25 2018, 1:17 PM
test/CodeGen/AMDGPU/GlobalISel/inst-select-fptoui.mir
20–26 ↗(On Diff #143312)

I've just been using update_mir_test_checks for all of these global isel tests

This revision was automatically updated to reflect the committed changes.