You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at #937 and #920, I think we should make this the default option for the runtime library. Using -O0 and -g and as suggested by @jirislaby-Xclang -disable-O0-optnone for newer clang versions.
KLEE can be still invoked with the -optimize flag.
As a note this is a fun comparision between the options on our get_sign.c: https://godbolt.org/z/tdtmDy example. It seems the -O0 -Xclang -disable-O0-optnone, -O1 -Xclang -disable-llvm-passesare very similar except that the -O1 option has some lifetime information.
Activity
[-]-O0 is not a recommended option[/-][+]-O0 is not a recommended option for clang[/+]humeafo commentedon May 26, 2018
Or is it possible to add an additional pass to remove the optnone attr on klee-side?
jirislaby commentedon Jun 15, 2018
I wouldn't remove optnone unconditionally, it might cause problems for locations where added intentionally.
But it turned out that
-O0 -Xclang -disable-O0-optnoneworks quite well.humeafo commentedon Jun 20, 2018
It's a better option except some more work on tests, perhaps this should be mentioned in docs for beginners when 6.0 port is merged to trunk.
kren1 commentedon Jul 2, 2018
Just a note that these options don't work for LLVM 3.4
jirislaby commentedon Jul 2, 2018
@kren1 correct, that's why I do: 34ba4a7#diff-d952c1df2f0c4ff2821b3dd8b67bb7d5
ccadar commentedon Jul 2, 2018
BTW, I think we should change add instructions on the web for LLVM 3.6, and slowly "migrate" to it. Any volunteers for the instructions? ;)
MartinNowack commentedon Jul 18, 2018
Looking at #937 and #920, I think we should make this the default option for the runtime library. Using
-O0and-gand as suggested by @jirislaby-Xclang -disable-O0-optnonefor newer clang versions.KLEE can be still invoked with the
-optimizeflag.kren1 commentedon Mar 5, 2019
As a note this is a fun comparision between the options on our
get_sign.c: https://godbolt.org/z/tdtmDy example. It seems the-O0 -Xclang -disable-O0-optnone,-O1 -Xclang -disable-llvm-passesare very similar except that the-O1option has some lifetime information.ccadar commentedon May 30, 2019
I think we can close this one, as we update the tests and the documentation to use/recommend these options.