This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Expand setcc for v2i32 and v4i32
ClosedPublic

Authored by kzhuravl on Oct 3 2017, 10:04 AM.

Details

Reviewers
arsenm

Diff Detail

Event Timeline

kzhuravl created this revision.Oct 3 2017, 10:04 AM
arsenm added inline comments.Oct 3 2017, 10:12 AM
lib/Target/AMDGPU/SIISelLowering.cpp
186–188 ↗(On Diff #117543)

Not sure how this could have been missing. Is f32 also broken?

This should go in the vector loops in AMDGPUISelLowering with the other v2i32/v4i32 operations

kzhuravl updated this revision to Diff 117557.Oct 3 2017, 11:54 AM
kzhuravl marked an inline comment as done.

Address review feedback.

lib/Target/AMDGPU/SIISelLowering.cpp
186–188 ↗(On Diff #117543)

I do not think f32 is broken.

arsenm accepted this revision.Oct 3 2017, 12:41 PM

LGTM. It shouldn't be any different for the f32 vectors.

assert(isOperationExpand(ISD::SETCC, MVT::v2f32));

fails, so it should probably be added to the FP vector loop also even if you can't find a testcase for it.

This revision is now accepted and ready to land.Oct 3 2017, 12:41 PM