[LLVMbugs] [Bug 12666] New: Hitting recursive JIT assert w/ aliases
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 25 17:28:37 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12666
Bug #: 12666
Summary: Hitting recursive JIT assert w/ aliases
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: boulos at cs.stanford.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When I run the following IR with function aliases through lli, I hit this
assert:
Assertion failed: (!isAlreadyCodeGenerating && "Error: Recursive compilation
detected!"), function runJITOnFunctionUnlocked, file JIT.cpp, line 617.
This is reproducible in LLVM-2.9 through TOT.
This is effectively a reduced version of the code I had in PR12607. The key is
that the JIT needs to be responsible for JIT'ing both Aliasee and MyAlias
(making MyAlias alias putchar directly doesn't trigger this assert).
------------
; AliasPutchar.ll
declare i32 @putchar(i32)
@MyAlias = alias i32 ()* @Aliasee
define i32 @Aliasee() {
entry:
%0 = call i32 @putchar(i32 65)
ret i32 %0
}
define i32 @main() {
entry:
%0 = call i32 @MyAlias()
ret i32 %0
}
--
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