[llvm-bugs] [Bug 43875] New: slp-vectorizer produces invalid IR: PHI nodes not grouped at top of basic block!

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 1 02:56:36 PDT 2019


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

            Bug ID: 43875
           Summary: slp-vectorizer produces invalid IR: PHI nodes not
                    grouped at top of basic block!
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: cszide at 163.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22758
  --> https://bugs.llvm.org/attachment.cgi?id=22758&action=edit
sp.S.x.bc

$clang -v
clang version 10.0.0 (https://github.com/llvm/llvm-project.git
ec630194fe64e9e304487040e808d0696a4f1895)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

$bin/opt -mem2reg -loop-reduce -instcombine -loop-rotate -slp-vectorizer  
sp.S.x.bc 
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

PHI nodes not grouped at top of basic block!
  %610 = phi <2 x i32> [ %606, %for.body1712.lr.ph ], [ %640, %for.inc1851 ]
label %for.body1712
in function x_solve
LLVM ERROR: Broken function found, compilation aborted!

-- 
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/20191101/3ce4dcd0/attachment.html>


More information about the llvm-bugs mailing list