summarylogtreecommitdiffstats
path: root/04.graphite.patch
diff options
context:
space:
mode:
authorQue Quotion2016-03-21 01:08:05 +0900
committerQue Quotion2016-03-21 01:08:05 +0900
commit4f73b6fa6eb810c63862cba8a2b79d9ab7436e54 (patch)
tree89a868313e3ff18537c1a0cd2f9b05303c5fc140 /04.graphite.patch
parent8bb63243303fb313baf09a95c3e49ae923b0781a (diff)
downloadaur-4f73b6fa6eb810c63862cba8a2b79d9ab7436e54.tar.gz
Graphite optimizations, also from qqbuild.
A little toned down. The Graphite flags are not entirely stable.
Diffstat (limited to '04.graphite.patch')
-rw-r--r--04.graphite.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/04.graphite.patch b/04.graphite.patch
new file mode 100644
index 000000000000..e71240865966
--- /dev/null
+++ b/04.graphite.patch
@@ -0,0 +1,14 @@
+--- src/makepkg-optimize/makepkg-optimize 2016-03-21 00:29:54.233122651 +0900
++++ src/makepkg-optimize+graphite 2016-03-21 01:04:16.403122620 +0900
+@@ -891,6 +891,11 @@
+ fi
+ fi
+
++ # Utilize graphite if it is requested (check buildenv and PKGBUILD opts)
++ if check_buildoption "graphite" "y"; then
++ CFLAGS+="-fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
++ CXXFLAGS+="-fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize"
++ fi
+
+ run_function_safe "build"
+ }