This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix selection of scalar f64 G_FABS
ClosedPublic

Authored by arsenm on Apr 7 2020, 8:38 AM.

Details

Summary

This wasn't covered by existing tablegen patterns, but also suffers
the same issues as G_FNEG. Workaround them by manually selecting, like
G_FNEG.

Diff Detail

Event Timeline

arsenm created this revision.Apr 7 2020, 8:38 AM
foad added inline comments.Apr 14 2020, 6:27 AM
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
1940–1942

Why is this needed here but not in selectG_FABS?

arsenm updated this revision to Diff 257333.Apr 14 2020, 7:53 AM

Fix constraining original registers

foad accepted this revision.Apr 14 2020, 8:39 AM
This revision is now accepted and ready to land.Apr 14 2020, 8:39 AM