[PATCH] D11829: AMDGPU/SI: Re-define AMDGPUISD:CLAMP as always clamping between 0.0. and 1.0
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 15:41:25 PDT 2015
arsenm added inline comments.
================
Comment at: lib/Target/AMDGPU/AMDGPUISelLowering.cpp:920-923
@@ -918,1 +919,6 @@
+
+ SDValue Tmp = DAG.getNode(ISD::FMAXNUM, DL, VT, Op.getOperand(1),
+ Op.getOperand(2));
+ return DAG.getNode(ISD::FMINNUM, DL, VT, Tmp, Op.getOperand(3));
+ }
----------------
Is this the same as v_med_f32?
http://reviews.llvm.org/D11829
More information about the llvm-commits
mailing list