Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in handleMove during scheduling of OpenCV kernel #28230

Closed
arsenm opened this issue May 24, 2016 · 2 comments
Closed

Crash in handleMove during scheduling of OpenCV kernel #28230

arsenm opened this issue May 24, 2016 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla llvm:regalloc

Comments

@arsenm
Copy link
Contributor

arsenm commented May 24, 2016

Bugzilla Link 27856
Resolution FIXED
Resolved on May 24, 2016 16:55
Version trunk
OS Linux
Attachments Testcase with new opt passes run, Reduced testcase with verifier error, Original testcase without new opt passes run for reference
CC @MatzeB

Extended Description

This crashes the original testcase when http://reviews.llvm.org/D20304 is applied.

A reduced version hits a verifier error instead after scheduling.

llc: /home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1066: void llvm::LiveIntervals::HMEditor::handleMoveDown(llvm::LiveRange&): Assertion `OldIdxVNI->def == OldIdxOut->start && "Inconsistent def"' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff671e295 in raise () from /usr/lib/libc.so.6
(gdb) bt
#​0 0x00007ffff671e295 in raise () from /usr/lib/libc.so.6
#​1 0x00007ffff671f6da in abort () from /usr/lib/libc.so.6
#​2 0x00007ffff6717297 in __assert_fail_base () from /usr/lib/libc.so.6
#​3 0x00007ffff6717342 in __assert_fail () from /usr/lib/libc.so.6
#​4 0x0000000001d74af7 in llvm::LiveIntervals::HMEditor::handleMoveDown (this=0x7fffffffca00, LR=...) at /home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1066
#​5 0x0000000001d7465a in llvm::LiveIntervals::HMEditor::updateRange (this=0x7fffffffca00, LR=..., Reg=2147484174, LaneMask=0) at /home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:996
#​6 0x0000000001d74394 in llvm::LiveIntervals::HMEditor::updateAllRanges (this=0x7fffffffca00, MI=0x46a3ec0) at /home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:964
#​7 0x0000000001d71bc2 in llvm::LiveIntervals::handleMove (this=0x461bd00, MI=..., UpdateFlags=true) at /home/matt/src/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1380
#​8 0x0000000001e23f1d in llvm::ScheduleDAGMI::moveInstruction (this=0x46dd0d0, MI=0x46a3ec0, InsertPos=...) at /home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:655
#​9 0x0000000001e279f1 in llvm::ScheduleDAGMILive::scheduleMI (this=0x46dd0d0, SU=0x46ecbc0, IsTopNode=false) at /home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:1327
#​10 0x0000000001e26973 in llvm::ScheduleDAGMILive::schedule (this=0x46dd0d0) at /home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:1122
#​11 0x0000000001e23690 in (anonymous namespace)::MachineSchedulerBase::scheduleRegions (this=0x461c650, Scheduler=..., FixKillFlags=false) at /home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:492
#​12 0x0000000001e22a52 in (anonymous namespace)::MachineScheduler::runOnMachineFunction (this=0x461c650, mf=...) at /home/matt/src/llvm/lib/CodeGen/MachineScheduler.cpp:357
#​13 0x0000000001decb98 in llvm::MachineFunctionPass::runOnFunction (this=0x461c690, F=...) at /home/matt/src/llvm/lib/CodeGen/MachineFunctionPass.cpp:60
#​14 0x00000000020f2957 in llvm::FPPassManager::runOnFunction (this=0x45d1d80, F=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1526
#​15 0x00000000020f2ace in llvm::FPPassManager::runOnModule (this=0x45d1d80, M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1547
#​16 0x00000000020f2e1b in (anonymous namespace)::MPPassManager::runOnModule (this=0x45ed4b0, M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1603
#​17 0x00000000020f34cd in llvm::legacy::PassManagerImpl::run (this=0x45e9c40, M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1706
#​18 0x00000000020f36d9 in llvm::legacy::PassManager::run (this=0x7fffffffd5a0, M=...) at /home/matt/src/llvm/lib/IR/LegacyPassManager.cpp:1737
#​19 0x0000000000d2bcfe in compileModule (argv=0x7fffffffdfe8, Context=...) at /home/matt/src/llvm/tools/llc/llc.cpp:465
#​20 0x0000000000d2a804 in main (argc=8, argv=0x7fffffffdfe8) at /home/matt/src/llvm/tools/llc/llc.cpp:244

@arsenm
Copy link
Contributor Author

arsenm commented May 24, 2016

assigned to @MatzeB

@MatzeB
Copy link
Contributor

MatzeB commented May 24, 2016

Thanks for the report and the reduced testcase. I just pushed a fix in r270619 which passes all three testcases.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm:regalloc
Projects
None yet
Development

No branches or pull requests

2 participants