This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Fold AMDGPUISD::CLAMP into VOP3 instructions when possible
AbandonedPublic

Authored by arsenm on Aug 7 2015, 6:32 AM.

Details

Diff Detail

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Fold AMDGPUISD::CLAMP into VOP3 instructions when possible.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Aug 7 2015, 9:42 AM
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
596–597

This can be folded into the if (SDNode ...

878

I think I read somewhere that using clamp / omod doesn't work with denormals, so maybe this should be not doing this fold if hasFP32Denormals.

Does this work with f64 also?

arsenm commandeered this revision.Feb 17 2017, 11:31 PM
arsenm edited reviewers, added: tstellarAMD; removed: arsenm.
arsenm edited edge metadata.

Obsoleted by D30134

arsenm abandoned this revision.Feb 17 2017, 11:31 PM