-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
[InstCombine] Crash on valid input when narrowing type but not updating range
attribute
#112633
Comments
Ill have fix up in a bit. Going to basically add |
goldsteinn
added a commit
to goldsteinn/llvm-project
that referenced
this issue
Oct 17, 2024
…ith incompatible type In a variety of places we change the bitwidth of a parameter but don't update the attributes. The issue in this case is from the `range` attribute when inlining `__memset_chk`. `optimizeMemSetChk` will replace an `i32` with an `i8`, and if the `i32` had a `range` attr assosiated it will cause an error. Fixes llvm#112633
goldsteinn
added a commit
that referenced
this issue
Oct 17, 2024
…ith incompatible type (#112649) In a variety of places we change the bitwidth of a parameter but don't update the attributes. The issue in this case is from the `range` attribute when inlining `__memset_chk`. `optimizeMemSetChk` will replace an `i32` with an `i8`, and if the `i32` had a `range` attr assosiated it will cause an error. Fixes #112633
goldsteinn
added a commit
to goldsteinn/llvm-project
that referenced
this issue
Oct 17, 2024
…lvm#91101)" (2nd Attempt) Root cause of the bug was code hanging onto `range` attr after changing BitWidth. This was fixed in PR llvm#112633.
goldsteinn
added a commit
that referenced
this issue
Oct 18, 2024
bricknerb
pushed a commit
to bricknerb/llvm-project
that referenced
this issue
Oct 21, 2024
…ith incompatible type (llvm#112649) In a variety of places we change the bitwidth of a parameter but don't update the attributes. The issue in this case is from the `range` attribute when inlining `__memset_chk`. `optimizeMemSetChk` will replace an `i32` with an `i8`, and if the `i32` had a `range` attr assosiated it will cause an error. Fixes llvm#112633
bricknerb
pushed a commit
to bricknerb/llvm-project
that referenced
this issue
Oct 21, 2024
…lvm#91101)" (2nd Attempt) (llvm#112749) Root cause of the bug was code hanging onto `range` attr after changing BitWidth. This was fixed in PR llvm#112633.
EricWF
pushed a commit
to efcs/llvm-project
that referenced
this issue
Oct 22, 2024
…ith incompatible type (llvm#112649) In a variety of places we change the bitwidth of a parameter but don't update the attributes. The issue in this case is from the `range` attribute when inlining `__memset_chk`. `optimizeMemSetChk` will replace an `i32` with an `i8`, and if the `i32` had a `range` attr assosiated it will cause an error. Fixes llvm#112633
EricWF
pushed a commit
to efcs/llvm-project
that referenced
this issue
Oct 22, 2024
…lvm#91101)" (2nd Attempt) (llvm#112749) Root cause of the bug was code hanging onto `range` attr after changing BitWidth. This was fixed in PR llvm#112633.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://godbolt.org/z/b3M1dj6aj
We keep the
range(i32 ...)
when we replace the_chk
withmemset.inline.p0.i64
which leads to a crash:The text was updated successfully, but these errors were encountered: