[AMDGPU] Fix comment for llvm.amdgcn.div.scale. NFC.
authorAustin Kerbow <Austin.Kerbow@amd.com>
Mon, 13 Apr 2020 18:58:15 +0000 (11:58 -0700)
committerAustin Kerbow <Austin.Kerbow@amd.com>
Mon, 13 Apr 2020 19:04:55 +0000 (12:04 -0700)
Update comment to reflect actual lowering.

llvm/include/llvm/IR/IntrinsicsAMDGPU.td

index d1eae65..b5f9685 100644 (file)
@@ -217,8 +217,8 @@ def int_amdgcn_s_waitcnt : GCCBuiltin<"__builtin_amdgcn_s_waitcnt">,
 def int_amdgcn_div_scale : Intrinsic<
   // 1st parameter: Numerator
   // 2nd parameter: Denominator
-  // 3rd parameter: Constant to select between first and
-  //                second. (0 = first, 1 = second).
+  // 3rd parameter: Select quotient. Must equal Numerator or Denominator.
+  //                (0 = Denominator, 1 = Numerator).
   [llvm_anyfloat_ty, llvm_i1_ty],
   [LLVMMatchType<0>, LLVMMatchType<0>, llvm_i1_ty],
   [IntrNoMem, IntrSpeculatable, ImmArg<2>]