[PATCH] R600: Disable FP exceptions

Matt Arsenault Matthew.Arsenault at amd.com
Fri Aug 8 18:07:45 PDT 2014


http://reviews.llvm.org/D4834

Files:
  lib/Target/R600/AMDGPUISelLowering.cpp

Index: lib/Target/R600/AMDGPUISelLowering.cpp
===================================================================
--- lib/Target/R600/AMDGPUISelLowering.cpp
+++ lib/Target/R600/AMDGPUISelLowering.cpp
@@ -376,6 +376,11 @@
   setSchedulingPreference(Sched::RegPressure);
   setJumpIsExpensive(true);
 
+  // SI at least has hardware support for floating point exceptions, but no way
+  // of using or handling them is implemented. They are also optional in OpenCL
+  // (Section 7.3)
+  setHasFloatingPointExceptions(false);
+
   setSelectIsExpensive(false);
   PredictableSelectIsExpensive = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4834.12322.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140809/02c72e06/attachment.bin>


More information about the llvm-commits mailing list