-
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
[SimplyCFG] After 7c4180a36a9, Assertion failed: (idx < size()), function operator[] (in SwitchToLookupTable) #88607
Labels
Comments
Thanks @DimitryAndric for your report, I can reproduce the issue with reduced IR
|
vfdff
added a commit
to vfdff/llvm-project
that referenced
this issue
Apr 13, 2024
The large case index out of scope is dead code, but it is still be created in TableContents in SwitchLookupTable::SwitchLookupTable so make sure the table size after growing should not get smaller. Fix llvm#88607
vfdff
added a commit
to vfdff/llvm-project
that referenced
this issue
Apr 14, 2024
The large case index out of scope is dead code, but it is still be created in TableContents in SwitchLookupTable::SwitchLookupTable so make sure the table size after growing should not get smaller. Fix llvm#88607
vfdff
added a commit
that referenced
this issue
Apr 15, 2024
The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix #88607
bazuzi
pushed a commit
to bazuzi/llvm-project
that referenced
this issue
Apr 15, 2024
…8616) The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix llvm#88607
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Apr 15, 2024
[SimplifyCFG] Fix crash when there is unreachable large index (#88616) The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix llvm/llvm-project#88607 This should fix "Assertion failed: (idx < size()), function operator[]" when building the science/dynare port. PR: 276104, 278320 Reported by: yuri MFC after: 1 month
aniplcc
pushed a commit
to aniplcc/llvm-project
that referenced
this issue
Apr 15, 2024
…8616) The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix llvm#88607
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Apr 20, 2024
[SimplifyCFG] Fix crash when there is unreachable large index (#88616) The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix llvm/llvm-project#88607 This should fix "Assertion failed: (idx < size()), function operator[]" when building the science/dynare port. PR: 276104, 278320 Reported by: yuri MFC after: 1 month (cherry picked from commit 514c98b)
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Apr 20, 2024
[SimplifyCFG] Fix crash when there is unreachable large index (#88616) The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix llvm/llvm-project#88607 This should fix "Assertion failed: (idx < size()), function operator[]" when building the science/dynare port. PR: 276104, 278320 Reported by: yuri MFC after: 1 month (cherry picked from commit 514c98b)
bsdjhb
pushed a commit
to bsdjhb/cheribsd
that referenced
this issue
Aug 9, 2024
[SimplifyCFG] Fix crash when there is unreachable large index (#88616) The large case index out of scope is dead code, but it is still be created for TableContents in SwitchLookupTable::SwitchLookupTable, so make sure the table size after growing should not get smaller. Fix llvm/llvm-project#88607 This should fix "Assertion failed: (idx < size()), function operator[]" when building the science/dynare port. PR: 276104, 278320 Reported by: yuri MFC after: 1 month
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As reported in https://bugs.freebsd.org/278320, clang 18 asserts on the science/dynare port, with:
This regressed with 7c4180a ("Reland [SimplifyCFG] Delete the unnecessary range check for small mask operation (#70542)") by @vfdff, cc @zmodem @nikic @nathanchance .
Minimized test case:
The text was updated successfully, but these errors were encountered: