[LLVMbugs] [Bug 13348] New: assertion hits in llvm::TargetInstrInfo::foldMemoryOperand
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 12 21:10:43 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13348
Bug #: 13348
Summary: assertion hits in
llvm::TargetInstrInfo::foldMemoryOperand
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8883
--> http://llvm.org/bugs/attachment.cgi?id=8883
test case
With the attached program and a recent top-of-tree I'm getting:
% llc -mattr=+avx2 bugpoint-reduced-simplified.ll
llc: TargetInstrInfoImpl.cpp:325: llvm::MachineInstr*
llvm::TargetInstrInfo::foldMemoryOperand(llvm::MachineBasicBlock::iterator,
const llvm::SmallVectorImpl<unsigned int>&, int) const: Assertion `(!(Flags &
MachineMemOperand::MOLoad) || NewMI->mayLoad()) && "Folded a use to a
non-load!"' failed.
0 llc 0x0000000000ff9bff
1 llc 0x0000000000ffa722
2 libpthread.so.0 0x00002ac0a9200c60
3 libc.so.6 0x00002ac0a9de9d05 gsignal + 53
4 libc.so.6 0x00002ac0a9dedab6 abort + 390
5 libc.so.6 0x00002ac0a9de27c5 __assert_fail + 245
6 llc 0x0000000000ccd61d
llvm::TargetInstrInfo::foldMemoryOperand(llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, llvm::SmallVectorImpl<unsigned int>
const&, int) const + 573
7 llc 0x0000000000cff563
8 llc 0x0000000000d00fcf
9 llc 0x0000000000d0372f
10 llc 0x0000000000c5bebe
11 llc 0x0000000000d1be74 llvm::RegAllocBase::allocatePhysRegs() +
260
12 llc 0x0000000000c5c8e4
13 llc 0x0000000000f9058f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 591
14 llc 0x0000000000f90633
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
15 llc 0x0000000000f90294
llvm::MPPassManager::runOnModule(llvm::Module&) + 532
16 llc 0x0000000000f93aab llvm::PassManagerImpl::run(llvm::Module&)
+ 171
17 llc 0x0000000000510ef7 main + 5351
18 libc.so.6 0x00002ac0a9dd4eff __libc_start_main + 255
19 llc 0x000000000050c959
Stack dump:
0. Program arguments: llc -mattr=+avx2 bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'Greedy Register Allocator' on function
'@"f_fu___un<unf>un<unf>unf"'
[1] 2763 abort llc -mattr=+avx2 bugpoint-reduced-simplified.ll
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list