[llvm-bugs] [Bug 26925] New: wrong code produced by -structurizecfg

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 12 02:41:53 PST 2016


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

            Bug ID: 26925
           Summary: wrong code produced by -structurizecfg
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: chengniansun at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16030
  --> https://llvm.org/bugs/attachment.cgi?id=16030&action=edit
bug triggering bitcode program.

The attached bitcode program is miscompiled by the optimization pass
-structurizecfg.


$: clang-trunk -w small.bc ; ./a.out ; echo $?
0
$: opt-trunk -structurizecfg small.bc -o small-2.bc
$: clang-trunk -w small-2.bc ; timeout -s 9 10 ./a.out ; echo $?
Killed: 9
137
$:
$: clang-trunk -v
clang version 3.9.0 (trunk 263269)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
InstalledDir: /usr/local/bin
$: opt-trunk -version
LLVM (http://llvm.org/):
  LLVM version 3.9.0svn
  Optimized build with assertions.
  Built Mar 11 2016 (10:29:13).
  Default target: x86_64-apple-darwin15.2.0
  Host CPU: haswell

-- 
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/20160312/e6069dae/attachment.html>


More information about the llvm-bugs mailing list