[LLVMbugs] [Bug 4927] New: assertion "no allocatable register" breaks Apple-style llvm-gcc build
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Sep 8 12:55:29 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4927
Summary: assertion "no allocatable register" breaks Apple-style
llvm-gcc build
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bob.wilson at apple.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3473)
--> (http://llvm.org/bugs/attachment.cgi?id=3473)
testcase
Apple-style builds of llvm-gcc are broken on llvm trunk if you include ARM
support. I'm getting an assertion failure when using the x86 llvm-gcc to build
the arm llvm-gcc. It seems to happen only with fast isel. To reproduce,
compile the attached testcase with "llc -O0":
Assertion failed: (I != E && "No allocatable register in this register
class!"), function getFreePhysReg, file
/Volumes/LocalHD/bwilson/llvm/build/llvmCore.roots/llvmCore~obj/src/lib/CodeGen/RegAllocLinearScan.cpp,
line 1362.
0 llc 0x00900fa4 PrintStackTrace(void*) + 45
1 llc 0x009015ac SignalHandler(int) + 410
2 libSystem.B.dylib 0x98115bfb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1743692847
4 libSystem.B.dylib 0x981a3ba5 raise + 26
5 libSystem.B.dylib 0x981b9c5c abort + 93
6 libSystem.B.dylib 0x981a6804 __pthread_markcancel + 0
7 llc 0x0067d725 (anonymous
namespace)::RALinScan::getFreePhysReg(llvm::LiveInterval*,
llvm::TargetRegisterClass const*, unsigned int, llvm::SmallVector<unsigned int,
256u>&, bool) + 335
8 llc 0x0067e80d (anonymous
namespace)::RALinScan::getFreePhysReg(llvm::LiveInterval*) + 1073
9 llc 0x00680860 (anonymous
namespace)::RALinScan::assignRegOrStackSlotAtInterval(llvm::LiveInterval*) +
1928
10 llc 0x006834b1 (anonymous namespace)::RALinScan::linearScan()
+ 667
11 llc 0x00683d99 (anonymous
namespace)::RALinScan::runOnMachineFunction(llvm::MachineFunction&) + 523
12 llc 0x00642737
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 77
13 llc 0x0087f8d7
llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
14 llc 0x0087fe0a
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 112
15 llc 0x0087ffd6
llvm::FunctionPassManager::run(llvm::Function&) + 130
16 llc 0x0002b134 main + 3395
17 llc 0x00029c85 start + 53
--
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