[pypy-commit] pypy shadowstack-perf-2: call postprocess_graph() even if gctransformer.inline is false

arigo pypy.commits at gmail.com
Sun Mar 5 05:37:06 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: shadowstack-perf-2
Changeset: r90560:0ff4c0371367
Date: 2017-03-05 11:36 +0100
http://bitbucket.org/pypy/pypy/changeset/0ff4c0371367/

Log:	call postprocess_graph() even if gctransformer.inline is false

diff --git a/rpython/memory/gctransform/transform.py b/rpython/memory/gctransform/transform.py
--- a/rpython/memory/gctransform/transform.py
+++ b/rpython/memory/gctransform/transform.py
@@ -137,7 +137,7 @@
             constant_fold_graph(graph)
         return any_inlining
 
-    def inline_helpers(self, graphs):
+    def inline_helpers_and_postprocess(self, graphs):
         for graph in graphs:
             any_inlining = self.inline and self.inline_helpers_into(graph)
             self.postprocess_graph(graph, any_inlining)
diff --git a/rpython/translator/c/database.py b/rpython/translator/c/database.py
--- a/rpython/translator/c/database.py
+++ b/rpython/translator/c/database.py
@@ -346,9 +346,9 @@
 
         assert not self.delayedfunctionptrs
         self.completed = True
-        if self.gctransformer is not None and self.gctransformer.inline:
+        if self.gctransformer is not None:
             log.database("Inlining GC helpers and postprocessing")
-            self.gctransformer.inline_helpers(self.all_graphs())
+            self.gctransformer.inline_helpers_and_postprocess(self.all_graphs())
         if show_progress:
             dump()
         log.database("Completed")


More information about the pypy-commit mailing list