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

Assertion in Scalar Evolution when running IRCE #89959

Closed
gbaraldi opened this issue Apr 24, 2024 · 2 comments · Fixed by #89967
Closed

Assertion in Scalar Evolution when running IRCE #89959

gbaraldi opened this issue Apr 24, 2024 · 2 comments · Fixed by #89967
Assignees
Labels

Comments

@gbaraldi
Copy link
Contributor

The following IR crashes with

define void @foo() {
top:
  br label %L3

L3:                                               ; preds = %L13, %top
  %value_phi = phi ptr [ null, %top ], [ %0, %L13 ]
  %0 = getelementptr i8, ptr %value_phi, i64 8
  %.not = icmp ule ptr %value_phi, null
  br i1 %.not, label %L13, label %L15

L13:                                              ; preds = %L3
  br label %L3

L15:                                              ; preds = %L3
  ret void
}

opt --passes=irce

https://godbolt.org/z/1sbvaT7r1

@nikic
Copy link
Contributor

nikic commented Apr 26, 2024

/cherry-pick 22da5a6

llvmbot pushed a commit to llvmbot/llvm-project that referenced this issue Apr 26, 2024
@llvmbot
Copy link
Member

llvmbot commented Apr 26, 2024

/pull-request #90182

gbaraldi pushed a commit to JuliaLang/llvm-project that referenced this issue Apr 26, 2024
@tstellar tstellar moved this from Needs Triage to Done in LLVM Release Status Apr 27, 2024
tstellar pushed a commit to llvmbot/llvm-project that referenced this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

4 participants