[llvm-dev] Interaction of --disable-llvm-passes and -O0

Dan Zimmerman via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 13 20:18:41 PST 2017


Pardon if this isn't the right forum for this question, but is there a reason that when both `--disable-llvm-passes` and `-O0` are passed to cc1 llvm optimization passes still appear to occur? For the past hour or so I was trying to figure out how to get a proper test for https://reviews.llvm.org/D41050 <https://reviews.llvm.org/D41050> out - as soon as I changed -O0 to -O3 (as suggested in this post: http://lists.llvm.org/pipermail/llvm-dev/2017-April/111989.html <http://lists.llvm.org/pipermail/llvm-dev/2017-April/111989.html>) the optimization passes didn't occur. Is this known/defined behavior? If so, is there documentation as to why it behaves that way?

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171213/a3529f9a/attachment.html>


More information about the llvm-dev mailing list