http://llvm.org/bugs/show_bug.cgi?id=6092

           Summary: Kaleidoscope (toy-v3) does optimise, doc-text say not.
                    Unclear!
           Product: Documentation
           Version: 2.6
          Platform: Macintosh
               URL: http://llvm.org/releases/2.6/docs/tutorial/LangImpl3.htm
                    l#driver
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General docs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


This section, about code-generation say the code is not optimized. (will be
added in next chapter)
As an example the code for '4+5;' is given which should (by the text) result in
an add instruction.

Compling that code (with release 2.6) shows different, however. The shown code
is optimized; it becomes the value 9.0

Log:
|| ready> 4+5;
|| ready> Read top-level expression:
|| define double @2() {
|| entry:
||   ret double 9.000000e+00
|| }

Hope this helps --Albert


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to