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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

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

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

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to