Skip to content

Scalar evolution fails to compute loop iteration count #2460

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 2088
Resolution FIXED
Resolved on Jul 20, 2008 11:04
Version trunk
OS Linux
Attachments Testcase
CC @nlewycky,@regehr

Extended Description

To reproduce: compare the output of "lli abortbug.bc" and "opt -indvars abortbug.bc -o - | lli" with the attached testcase.

I think it's somehow illegally rewriting the induction variable z.

Original source (from X86/README.txt):
main ()
{
int i = 0;
unsigned long int z = 0;

do {
z -= 0x00004000;
i++;
if (i > 0x00040000)
abort ();
} while (z > 0);
exit (0);
}
compiled with clang.

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