[llvm-bugs] [Bug 44759] New: opt -instsimplify fails with Assertion `(L.contains(UserI) || isa<PHINode>(UserI)) && "Uses outside the loop should be PHI nodes due to LCSSA!"' failed.
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 3 00:27:16 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44759
Bug ID: 44759
Summary: opt -instsimplify fails with Assertion
`(L.contains(UserI) || isa<PHINode>(UserI)) && "Uses
outside the loop should be PHI nodes due to LCSSA!"'
failed.
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Loop Optimizer
Assignee: unassignedbugs at nondot.org
Reporter: mikael.holmen at ericsson.com
CC: llvm-bugs at lists.llvm.org
Created attachment 23081
--> https://bugs.llvm.org/attachment.cgi?id=23081&action=edit
bbi-15499.ll reproducer
Reproduce with:
opt -S -o - bbi-15499.ll -loop-instsimplify
Result:
opt: ../lib/Transforms/Scalar/LoopInstSimplify.cpp:132: bool
simplifyLoopInst(llvm::Loop &, llvm::DominatorTree &, llvm::LoopInfo &,
llvm::AssumptionCache &, const llvm::TargetLibraryInfo &,
llvm::MemorySSAUpdater *): Assertion `(L.contains(UserI) ||
isa<PHINode>(UserI)) && "Uses outside the loop should be PHI nodes due to
LCSSA!"' failed.
Stack dump:
0. Program arguments: ../../master/llvm/build-all-builtins/bin/opt -S -o -
bbi-15499.ll -loop-instsimplify
1. Running pass 'Function Pass Manager' on module 'bbi-15499.ll'.
2. Running pass 'Loop Pass Manager' on function '@f1'
3. Running pass 'Simplify instructions in loops' on basic block
'%for.cond1'
#0 0x0000000003f382b4 PrintStackTraceSignalHandler(void*)
(../../master/llvm/build-all-builtins/bin/opt+0x3f382b4)
#1 0x0000000003f35e7e llvm::sys::RunSignalHandlers()
(../../master/llvm/build-all-builtins/bin/opt+0x3f35e7e)
#2 0x0000000003f386bc SignalHandler(int)
(../../master/llvm/build-all-builtins/bin/opt+0x3f386bc)
#3 0x00007fc852f48890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007fc8519f1e97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#5 0x00007fc8519f3801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
#6 0x00007fc8519e339a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
#7 0x00007fc8519e3412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
#8 0x0000000003ce9715 simplifyLoopInst(llvm::Loop&, llvm::DominatorTree&,
llvm::LoopInfo&, llvm::AssumptionCache&, llvm::TargetLibraryInfo const&,
llvm::MemorySSAUpdater*)
(../../master/llvm/build-all-builtins/bin/opt+0x3ce9715)
#9 0x0000000003cea08e (anonymous
namespace)::LoopInstSimplifyLegacyPass::runOnLoop(llvm::Loop*,
llvm::LPPassManager&) (../../master/llvm/build-all-builtins/bin/opt+0x3cea08e)
#10 0x00000000031497fb llvm::LPPassManager::runOnFunction(llvm::Function&)
(../../master/llvm/build-all-builtins/bin/opt+0x31497fb)
#11 0x00000000037a8794 llvm::FPPassManager::runOnFunction(llvm::Function&)
(../../master/llvm/build-all-builtins/bin/opt+0x37a8794)
#12 0x00000000037a8a48 llvm::FPPassManager::runOnModule(llvm::Module&)
(../../master/llvm/build-all-builtins/bin/opt+0x37a8a48)
#13 0x00000000037a909d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(../../master/llvm/build-all-builtins/bin/opt+0x37a909d)
#14 0x000000000212da93 main
(../../master/llvm/build-all-builtins/bin/opt+0x212da93)
#15 0x00007fc8519d4b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#16 0x000000000211502a _start
(../../master/llvm/build-all-builtins/bin/opt+0x211502a)
Abort (core dumped)
The input contains an unreachable block that I assume is the cause of the
problem.
This seems rather old, I start seeing it in builds from May 2018.
--
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/20200203/27b1f10d/attachment.html>
More information about the llvm-bugs
mailing list