[PATCH] R600: Disable FP exceptions
Tom Stellard
tom at stellard.net
Fri Aug 8 19:00:17 PDT 2014
On Sat, Aug 09, 2014 at 01:07:45AM +0000, Matt Arsenault wrote:
> http://reviews.llvm.org/D4834
LGTM.
>
> 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;
> 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;
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list