[llvm-bugs] [Bug 35950] opt is defunct when code built without optimizations

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 15 10:27:45 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=35950

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dblaikie at gmail.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
This behavior is intentional.

-O0 IR carries with it that contract that it should not be optimized - so opt
satisfies that request by running the optimization passes, but they all do
nothing to modify -O0 IR.

This is important when preserving the semantic request of -O0 in IR that is
merged from multiple other IR files, some of which may be compiled with -O0 and
some with optimizations enabled.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180115/9f6e346b/attachment-0001.html>


More information about the llvm-bugs mailing list