Skip to content

Indvars Pass Turns a Counted Loop into an Infinite Loop #8450

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

Closed
llvmbot opened this issue Sep 4, 2010 · 1 comment
Closed

Indvars Pass Turns a Counted Loop into an Infinite Loop #8450

llvmbot opened this issue Sep 4, 2010 · 1 comment
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Member

llvmbot commented Sep 4, 2010

Bugzilla Link 8078
Resolution FIXED
Resolved on Sep 03, 2010 21:43
Version unspecified
OS Linux
Attachments Test case, Bitcode from testcase compiled with -O2
Reporter LLVM Bugzilla Contributor
CC @sunfishcode

Extended Description

Transforms an ordinary counted loop into an infinite loop. I have attached C source code and llvm bitcode to demonstrate the bug. To reproduce:

$ clang -O2 ./KS-2.c -emit-llvm -c -o ks.all.ll
$ clang ks.all.ll -o ks.all
$ ./ks.all
0 + 1: 1
$ opt ks.all.ll -indvars -o ks.all.indvars.ll
$ clang ks.all.indvars.ll -o ks.all.indvars
$ ./ks.all.indvars
0 + 1: 1
0 + 1: 1
0 + 1: 1
...

@sunfishcode
Copy link
Member

Fixed in 113057.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
augusto2112 pushed a commit to augusto2112/llvm-project that referenced this issue Mar 22, 2024
Add a frame recognizer for Swift runtime error with instrumentation.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

2 participants