[llvm-bugs] [Bug 43797] New: licm crashes: Assertion `(!L->getParentLoop() || L->getParentLoop()->isLCSSAForm(*DT)) && "Parent loop not left in LCSSA form after LICM!"' failed.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 24 17:57:35 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43797
Bug ID: 43797
Summary: licm crashes: Assertion `(!L->getParentLoop() ||
L->getParentLoop()->isLCSSAForm(*DT)) && "Parent loop
not left in LCSSA form after LICM!"' failed.
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 22719
--> https://bugs.llvm.org/attachment.cgi?id=22719&action=edit
ua.S.x.bc
$clang -v
clang version 10.0.0 (https://github.com/llvm/llvm-project.git
e3b49df50e4f463f1b0bed5a0a476eafafd1d426)
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
$opt -instcombine -licm -loop-rotate -loop-interchange -licm ua.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.
opt:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/llvm/lib/Transforms/Scalar/LICM.cpp:474:
bool {anonymous}::LoopInvariantCodeMotion::runOnLoop(llvm::Loop*,
llvm::AliasAnalysis*, llvm::LoopInfo*, llvm::DominatorTree*,
llvm::TargetLibraryInfo*, llvm::TargetTransformInfo*, llvm::ScalarEvolution*,
llvm::MemorySSA*, llvm::OptimizationRemarkEmitter*, bool): Assertion
`(!L->getParentLoop() || L->getParentLoop()->isLCSSAForm(*DT)) && "Parent loop
not left in LCSSA form after LICM!"' failed.
Stack dump:
0. Program arguments:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt
-instcombine -licm -loop-rotate -loop-interchange -licm ua.S.x.bc
1. Running pass 'Function Pass Manager' on module 'ua.S.x.bc'.
2. Running pass 'Loop Pass Manager' on function '@setdef'
3. Running pass 'Loop Invariant Code Motion' on basic block '%for.body3'
#0 0x000055e197d1656a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x285a56a)
#1 0x000055e197d14234 llvm::sys::RunSignalHandlers()
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2858234)
#2 0x000055e197d14372 SignalHandler(int)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2858372)
#3 0x00007fc40a94e890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007fc409600e97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#5 0x00007fc409602801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
#6 0x00007fc4095f239a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
#7 0x00007fc4095f2412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
#8 0x000055e197ad612b (anonymous
namespace)::LoopInvariantCodeMotion::runOnLoop(llvm::Loop*, llvm::AAResults*,
llvm::LoopInfo*, llvm::DominatorTree*, llvm::TargetLibraryInfo*,
llvm::TargetTransformInfo*, llvm::ScalarEvolution*, llvm::MemorySSA*,
llvm::OptimizationRemarkEmitter*, bool)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x261a12b)
#9 0x000055e197ad653a (anonymous
namespace)::LegacyLICMPass::runOnLoop(llvm::Loop*, llvm::LPPassManager&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x261a53a)
#10 0x000055e196fb5d9b llvm::LPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1af9d9b)
#11 0x000055e19762c239 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2170239)
#12 0x000055e19762cbe9 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2170be9)
#13 0x000055e19762b491 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x216f491)
#14 0x000055e195dc010f main
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x90410f)
#15 0x00007fc4095e3b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#16 0x000055e195e56f6a _start
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x99af6a)
Aborted (core dumped)
--
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/20191025/4fd4ea20/attachment-0001.html>
More information about the llvm-bugs
mailing list