Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upGC issues under clang compile time optimizations #20
Comments
felixSchl
added
bug
help wanted
labels
Sep 11, 2018
felixSchl
added this to To do
in Optimizations
Oct 3, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
felixSchl commentedSep 11, 2018
•
edited
Branch bug/clang-opts demonstrates a minimal program to reproduce GC issues due to compile time optimization (any level of optimization appears to trigger this). Note that the various random seeming
pure units need to be there to trigger the issue. I have a hunch it's related to type-classes (or hash maps, more generally speaking) - hence the monomorphic versions ofbind,pure, anddiscardforEffect.)For example, on my machine the example program prints: "test: append" as opposed to "test: quark", for example when compiled with -O3.