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

            Bug ID: 49185
           Summary: opt -O3 crashes with Assertion `NewL->getParentLoop()
                    == ParentL && "All of the new loops must be siblings
                    of the current loop!"' failed. with new PM
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedb...@nondot.org
          Reporter: mikael.hol...@ericsson.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 24526
  --> https://bugs.llvm.org/attachment.cgi?id=24526&action=edit
bbi-52864.ll reproducer

Reproduce with:
 opt -unswitch-threshold=100 -O3 -S -o - bbi-52864.ll

Result:
 opt: ../include/llvm/Transforms/Scalar/LoopPassManager.h:311: void
llvm::LPMUpdater::addSiblingLoops(ArrayRef<llvm::Loop *>): Assertion
`NewL->getParentLoop() == ParentL && "All of the new loops must be siblings of
the current loop!"' failed.

It doesn't crash with -enable-new-pm=0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to