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 933 - X86 -enable-x86-fastcc crash on functions returning bool
Summary: X86 -enable-x86-fastcc crash on functions returning bool
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: trunk
Hardware: All All
: P release blocker
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-10-03 06:49 PDT by Eric van Riet Paap
Modified: 2010-02-22 12:50 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
bugpoint reduced bytecode (248.19 KB, application/x-gzip)
2006-10-03 06:50 PDT, Eric van Riet Paap
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric van Riet Paap 2006-10-03 06:49:34 PDT
llc -enable-x86-fastcc bugpoint-reduced-simplified.bc -f -o bugpoint-reduced-simplified.s

llc: X86ISelLowering.cpp:1495: llvm::SDOperand llvm::X86TargetLowering::LowerFastCCArguments
(llvm::SDOperand, llvm::SelectionDAG&): Assertion `0 && "Unknown type!"' failed.
llc((anonymous namespace)::PrintStackTrace()+0x1f)[0x852c01f]
/lib/libc.so.6(abort+0xeb)[0xb7dc10f3]
/lib/libc.so.6(__assert_fail+0xeb)[0xb7db94af]
llc(llvm::X86TargetLowering::LowerFastCCArguments(llvm::SDOperand, llvm::SelectionDAG&)+0x98b)
[0x821d72b]
./REDUCED_CRASH: line 1: 27102 Aborted                 llc -enable-x86-fastcc bugpoint-reduced-
simplified.bc -f -o bugpoint-reduced-simplified.s
Comment 1 Eric van Riet Paap 2006-10-03 06:50:52 PDT
Created attachment 403 [details]
bugpoint reduced bytecode
Comment 2 Chris Lattner 2006-10-03 12:20:24 PDT
Fixed.  Testcase here: CodeGen/X86/2006-10-02-BoolRetCrash.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061002/038246.html

Thanks!

One note though: -enable-x86-fastcc has a couple of problems, and doesn't always necessarily speed up 
the code.  Use it with care. :)

-Chris