[LLVMbugs] [Bug 15366] New: Incorrect optimization of switch inside while

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 26 10:57:45 PST 2013


            Bug ID: 15366
           Summary: Incorrect optimization of switch inside while
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: martins.mozeiko at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10083
  --> http://llvm.org/bugs/attachment.cgi?id=10083&action=edit

Following test.opt3.ll was incorrectly optimized from test.ll with "opt -O3
test.ll -o - | llvm-dis - -o test.opt3.ll" command.

Test program should loop infinitely, but instead it prints out "ERROR".

test.ll file was generated with "clang -cc1 -emit-llvm -O0 test.c -o test.ll"

This bug can be reproduces wit 32-bit or 64-bit code (generated from test.c)
and on Windows and OSX hosts.

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/20130226/017c955b/attachment.html>

More information about the llvm-bugs mailing list