[LLVMbugs] [Bug 6092] New: Kaleidoscope (toy-v3) does optimise, doc-text say not. Unclear!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 20 03:38:33 PST 2010


           Summary: Kaleidoscope (toy-v3) does optimise, doc-text say not.
           Product: Documentation
           Version: 2.6
          Platform: Macintosh
               URL: http://llvm.org/releases/2.6/docs/tutorial/LangImpl3.htm
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General docs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: albert at mietus.nl
                CC: llvmbugs at cs.uiuc.edu

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

|| 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.

More information about the llvm-bugs mailing list