[PATCH] D28615: AMDGPU: Fold free fneg into sin

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 10:15:10 PST 2017


nhaehnle accepted this revision.
nhaehnle added a reviewer: nhaehnle.
nhaehnle added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: lib/Target/AMDGPU/AMDGPUISelLowering.cpp:2916
       // (fneg (fp_extend (fneg x))) -> (fp_extend x)
       // (fneg (rcp (fneg x))) -> (rcp x)
       return DAG.getNode(Opc, SL, VT, CvtSrc.getOperand(0));
----------------
Expand the comment to match.


https://reviews.llvm.org/D28615





More information about the llvm-commits mailing list