From: Matt Arsenault Date: Sat, 9 Aug 2014 03:46:58 +0000 (+0000) Subject: R600: Disable FP exceptions. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cce260012f575707f0976bf9f4a4ce11e2e007f1;p=oota-llvm.git R600: Disable FP exceptions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215277 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp index 1a660858b6b..89c171b3a9a 100644 --- a/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/lib/Target/R600/AMDGPUISelLowering.cpp @@ -376,6 +376,11 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) : 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;