The fp16 <-> fp32 intrinsics are pure, mark them so they can be CSE'd, etc.
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 14 Mar 2010 18:42:04 +0000 (18:42 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 14 Mar 2010 18:42:04 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98498 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.td

index c34882815479d61030f4d0700bd8068c27f67811..24f65b6e93dde584639dc50136829fd9d1b6ad22 100644 (file)
@@ -452,10 +452,12 @@ def int_trap : Intrinsic<[llvm_void_ty]>,
 
 // Intrisics to support half precision floating point format
 def int_convert_to_fp16   : Intrinsic<[llvm_i16_ty],
-                                      [llvm_float_ty]>,
+                                      [llvm_float_ty],
+                                      [IntrNoMem]>,
                             GCCBuiltin<"__gnu_f2h_ieee">;
 def int_convert_from_fp16 : Intrinsic<[llvm_float_ty],
-                                      [llvm_i16_ty]>,
+                                      [llvm_i16_ty],
+                                      [IntrNoMem]>,
                             GCCBuiltin<"__gnu_h2f_ieee">;
 
 // These convert intrinsics are to support various conversions between