[llvm-bugs] [Bug 47329] New: [LSR] Formula is Non-canonical Assert in InsertFormula

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 27 01:09:33 PDT 2020


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

            Bug ID: 47329
           Summary: [LSR] Formula is Non-canonical Assert in InsertFormula
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: chenmindong120 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23899
  --> https://bugs.llvm.org/attachment.cgi?id=23899&action=edit
reproducer

$clang -O2 -fuse-ld=lld -flto=full test.c

ld.lld:
/home/chenmindong/llvm-project/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1525:
bool {anonymous}::LSRUse::InsertFormula(const {anonymous}::Formula&, const
llvm::Loop&): Assertion `F.isCanonical(L) && "Invalid canonical
representation"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /home/chenmindong/llvm-project/install/bin/ld.lld
-EL --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-linux-aarch64.so.1
-o a.out /usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64/crt1.o
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64/crti.o
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/crtbegin.o
-L/usr/lib/gcc/aarch64-linux-gnu/7.3.0
-L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../..
-L/home/chenmindong/llvm-project/install/bin/../lib -L/lib -L/usr/lib
-plugin-opt=mcpu=generic -plugin-opt=O2 -L/home/chenmindong/gcc10-install/lib64
/tmp/test-c39cd4.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/crtend.o
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64/crtn.o
1.      Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2.      Running pass 'Loop Pass Manager' on function '@main'
3.      Running pass 'Loop Strength Reduction' on basic block '%39'

-- 
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/20200827/b9c47500/attachment.html>


More information about the llvm-bugs mailing list