Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X86 -enable-x86-fastcc crash on functions returning bool #1305

Closed
llvmbot opened this issue Oct 3, 2006 · 2 comments
Closed

X86 -enable-x86-fastcc crash on functions returning bool #1305

llvmbot opened this issue Oct 3, 2006 · 2 comments
Assignees
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 3, 2006

Bugzilla Link 933
Resolution FIXED
Resolved on Feb 22, 2010 12:50
Version trunk
OS All
Attachments bugpoint reduced bytecode
Reporter LLVM Bugzilla Contributor

Extended Description

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

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 3, 2006

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Oct 3, 2006

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

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

2 participants