Title: [161515] branches/jsCStack/Source/_javascript_Core
Revision
161515
Author
[email protected]
Date
2014-01-08 12:02:43 -0800 (Wed, 08 Jan 2014)

Log Message

Make it possible to disable the disabling of AVX
https://bugs.webkit.org/show_bug.cgi?id=126652

Not yet reviewed.
        
Who knows, maybe some newer Intel chips will actually run AVX code properly.

* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::lower):
* runtime/Options.h:

Modified Paths

Diff

Modified: branches/jsCStack/Source/_javascript_Core/ChangeLog (161514 => 161515)


--- branches/jsCStack/Source/_javascript_Core/ChangeLog	2014-01-08 19:30:46 UTC (rev 161514)
+++ branches/jsCStack/Source/_javascript_Core/ChangeLog	2014-01-08 20:02:43 UTC (rev 161515)
@@ -1,3 +1,16 @@
+2014-01-08  Filip Pizlo  <[email protected]>
+
+        Make it possible to disable the disabling of AVX
+        https://bugs.webkit.org/show_bug.cgi?id=126652
+
+        Not yet reviewed.
+        
+        Who knows, maybe some newer Intel chips will actually run AVX code properly.
+
+        * ftl/FTLLowerDFGToLLVM.cpp:
+        (JSC::FTL::LowerDFGToLLVM::lower):
+        * runtime/Options.h:
+
 2014-01-07  Michael Saboff  <[email protected]>
 
         CStack Branch: ARM64 DFG produces the wrong answer for X % 0

Modified: branches/jsCStack/Source/_javascript_Core/ftl/FTLLowerDFGToLLVM.cpp (161514 => 161515)


--- branches/jsCStack/Source/_javascript_Core/ftl/FTLLowerDFGToLLVM.cpp	2014-01-08 19:30:46 UTC (rev 161514)
+++ branches/jsCStack/Source/_javascript_Core/ftl/FTLLowerDFGToLLVM.cpp	2014-01-08 20:02:43 UTC (rev 161515)
@@ -98,7 +98,7 @@
         m_ftlState.function = addFunction(
             m_ftlState.module, name.data(), functionType(m_out.int64));
         setFunctionCallingConv(m_ftlState.function, LLVMCCallConv);
-        if (isX86()) {
+        if (isX86() && Options::llvmDisallowAVX()) {
             // AVX makes V8/raytrace 80% slower. It makes Kraken/audio-oscillator 4.5x
             // slower. It should be disabled.
             addTargetDependentFunctionAttr(m_ftlState.function, "target-features", "-avx");

Modified: branches/jsCStack/Source/_javascript_Core/runtime/Options.h (161514 => 161515)


--- branches/jsCStack/Source/_javascript_Core/runtime/Options.h	2014-01-08 19:30:46 UTC (rev 161514)
+++ branches/jsCStack/Source/_javascript_Core/runtime/Options.h	2014-01-08 20:02:43 UTC (rev 161515)
@@ -137,6 +137,7 @@
     v(unsigned, llvmBackendOptimizationLevel, 2) \
     v(unsigned, llvmOptimizationLevel, 2) \
     v(unsigned, llvmSizeLevel, 0) \
+    v(bool, llvmDisallowAVX, true) \
     v(bool, ftlCrashes, false) /* fool-proof way of checking that you ended up in the FTL. ;-) */\
     \
     v(bool, enableConcurrentJIT, true) \
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to