Skip to content

plugin-recomp-change(-prof)? fails with debugged compiler in dyn way

The simplifier complains about running out of iterations. I had considered just adding -dno-debug-output to this test's compiler flags but thought better of it after seeing that the test itself is quite small; this very well may be a sign of a simplifier bug.

--- plugins/plugin-recomp-change.run/plugin-recomp-change.stderr.normalised	2019-10-04 04:50:41.610738869 +0000
+++ plugins/plugin-recomp-change.run/plugin-recomp-change.run.stderr.normalised	2019-10-04 04:50:41.610738869 +0000
@@ -1,6 +1,20 @@
 Simple Plugin Passes Queried
 Got options:
 Simple Plugin Pass Run
+WARNING: file compiler/simplCore/SimplCore.hs, line 678
+  Simplifier bailing out after 4 iterations [42, 53, 55, 15]
+    Size = {terms: 452, types: 1,175, coercions: 150, joins: 2/5}
+  Call stack:
+      CallStack (from HasCallStack):
+        callStackDoc, called at compiler/utils/Outputable.hs:<line>:<column> in <package-id>:Outputable
+        warnPprTrace, called at compiler/simplCore/SimplCore.hs:<line>:<column> in <package-id>:SimplCore
+WARNING: file compiler/simplCore/SimplCore.hs, line 678
+  Simplifier bailing out after 4 iterations [37, 53, 55, 15]
+    Size = {terms: 466, types: 1,215, coercions: 150, joins: 2/5}
+  Call stack:
+      CallStack (from HasCallStack):
+        callStackDoc, called at compiler/utils/Outputable.hs:<line>:<column> in <package-id>:Outputable
+        warnPprTrace, called at compiler/simplCore/SimplCore.hs:<line>:<column> in <package-id>:SimplCore
 Simple Plugin Passes Queried
 Got options:
 Simple Plugin Pass Run 2
WARNING: file compiler/simplCore/SimplCore.hs, line 678
  Simplifier bailing out after 4 iterations [70, 24, 43, 12]
    Size = {terms: 374, types: 1,078, coercions: 249, joins: 2/4}
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1237:29 in ghc:Outputable
        warnPprTrace, called at compiler/simplCore/SimplCore.hs:673:10 in ghc:SimplCore
WARNING: file compiler/simplCore/SimplCore.hs, line 678
  Simplifier bailing out after 4 iterations [45, 24, 43, 12]
    Size = {terms: 446, types: 1,270, coercions: 249, joins: 2/4}
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1237:29 in ghc:Outputable
        warnPprTrace, called at compiler/simplCore/SimplCore.hs:673:10 in ghc:SimplCore
Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information