Skip to content

ICE: Invalid instruction! #4423

@regehr

Description

@regehr
Bugzilla Link 4051
Resolution FIXED
Resolved on Apr 27, 2009 21:12
Version unspecified
OS Linux
CC @asl

Extended Description

Seen using r69856 on Ubuntu Hardy on x86.

regehr@john-home:~/volatile/tmp151$ llvm-gcc -O2 small.c -c
cc1: /home/regehr/z/tmp/llvm-r69856/include/llvm/CodeGen/LiveIntervalAnalysis.h:209: unsigned int llvm::LiveIntervals::getInstructionIndex(llvm::MachineInstr*) const: Assertion `it != mi2iMap_.end() && "Invalid instruction!"' failed.
small.c:19: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://llvm.org/bugs/ for instructions.

regehr@john-home:~/volatile/tmp151$ cat small.c

int bar (int _left, int _right)
{
return _right || 1 >> _right ? _left : 1;
}

int g_6;

int func_9 (char p_10)
{
return 0;
}

int foo (int);

void int163 (int p_4, int p_5)
{
(bar (p_5, foo (1)) && p_5 & 1) != g_6 && !func_9 (1);
foo (p_5);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions