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] div and rem constant exprs invalidate iterators! #495

Closed
llvmbot opened this issue Nov 18, 2003 · 3 comments
Closed

[X86] div and rem constant exprs invalidate iterators! #495

llvmbot opened this issue Nov 18, 2003 · 3 comments
Assignees

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 18, 2003

Bugzilla Link 123
Resolution FIXED
Resolved on Feb 22, 2010 12:48
Version 1.0
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

The kimwitu++ bytecode file
(/home/vadve/criswell/Downloads/CXXCode/kimwitu++-2.3.8/src/Gen.linux) hits the
following assertion:

lli: /home/vadve/criswell/llvm/lib/Target/X86/InstSelectSimple.cpp:52:
llvm::MachineInstrBuilder llvm::BMI(llvm::MachineBasicBlock*,
__gnu_cxx::__normal_iterator<llvm::MachineInstr**,
std::vector<llvm::MachineInstr*, std::allocatorllvm::MachineInstr* > >&, int,
unsigned int): Assertion `I >= MBB->begin() && I <= MBB->end() && "Bad
iterator!"' failed.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Nov 18, 2003

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Nov 18, 2003

I can reproduce this with just the _ZN9__gnu_cxx16__stl_next_primeEm function
and LLC. I'm looking into it.

Thanks!

-Chris

@lattner
Copy link
Collaborator

lattner commented Nov 18, 2003

Fixed, here's the patch:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031117/009616.html

Thanks,

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 1, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants