Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: crypto/p224.cc

Issue 819893002: Uses #pragma GCC reset_options to re-enable optimizations after ReduceLarge function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use #pragma GCC reset_options Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/p224.cc
diff --git a/crypto/p224.cc b/crypto/p224.cc
index 74ad7e00c4719dedaffec747361e8d69c1f80882..e8b56b839c94f3db1f0131e178533c2f3dae7a3f 100644
--- a/crypto/p224.cc
+++ b/crypto/p224.cc
@@ -175,7 +175,8 @@ void ReduceLarge(FieldElement* out, LargeFieldElement* inptr) {
// TODO(wez): Remove this when crbug.com/439566 is fixed.
#if defined(__GNUC__) && !defined(__clang__)
-#pragma GCC optimize("tree-vectorize")
+// Reenable "tree-vectorize" optimization if it got disabled for ReduceLarge.
+#pragma GCC reset_options
#endif
// Mul computes *out = a*b
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698