LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1266 - assertion failed in RegisterScavenging
Summary: assertion failed in RegisterScavenging
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Common Code Generator Code (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Dale Johannesen
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2007-03-22 08:55 PDT by Lauro Venancio
Modified: 2010-02-22 12:45 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments
bugpoint-reduced-simplified.bc (14.03 KB, application/octet-stream)
2007-03-22 08:56 PDT, Lauro Venancio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Venancio 2007-03-22 08:55:24 PDT
laurov@edgy-laptop:/tmp$ llc bugpoint-reduced-simplified.bc 
llc: /home/laurov/llvm/llvm/lib/CodeGen/RegisterScavenging.cpp:138: void
llvm::RegScavenger::forward(): Assertion `isUsed(Reg)' failed.
llc((anonymous namespace)::PrintStackTrace()+0x1a)[0x88b929a]
llc((anonymous namespace)::SignalHandler(int)+0x112)[0x88b9560]
[0xffffe420]
/lib/tls/i686/cmov/libc.so.6(abort+0x103)[0xb7da1ef3]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xfb)[0xb7d99dbb]
llc(llvm::RegScavenger::forward()+0x389)[0x8723507]
llc(llvm::RegScavenger::forward(llvm::ilist_iterator<llvm::MachineInstr>)+0x13)[0x84475c3]
llc[0x870dd3e]
llc[0x870fcf2]
llc(llvm::MachineFunctionPass::runOnFunction(llvm::Function&)+0x28)[0x83f802e]
llc(llvm::FPPassManager::runOnFunction(llvm::Function&)+0x13a)[0x8845ac6]
llc(llvm::FunctionPassManagerImpl::run(llvm::Function&)+0x6e)[0x8845d4a]
llc(llvm::FunctionPassManager::run(llvm::Function&)+0x88)[0x8845e0a]
llc(main+0xbaa)[0x83c920e]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d8c8cc]
llc(__gxx_personality_v0+0x17d)[0x83c7581]
Aborted (core dumped)
Comment 1 Lauro Venancio 2007-03-22 08:56:18 PDT
Created attachment 714 [details]
bugpoint-reduced-simplified.bc
Comment 2 Reid Spencer 2007-03-22 10:36:37 PDT
This is in the common code gen library.
Comment 3 Chris Lattner 2007-03-22 11:38:53 PDT
Evan, can you take a look?  Thanks,

-Chris
Comment 4 Dale Johannesen 2007-03-22 12:19:04 PDT
This only crashes for me with -enable-tail-merge; it may be caused or exposed by my change in that area.
Comment 5 Chris Lattner 2007-03-25 00:31:28 PDT
ok, Dale, plz investigate.