-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[SLPVectorizer] Instruction does not dominate all uses! LLVM ERROR: Broken module found, compilation aborted! #101213
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
Comments
…omes before new vector value. When trying to reuse extractelement instruction, need to check that it is inserted into proper position. Its original vector operand should come before new vector value, otherwise new extractelement instruction must be generated. Fixes #101213
…omes before new vector value. When trying to reuse extractelement instruction, need to check that it is inserted into proper position. Its original vector operand should come before new vector value, otherwise new extractelement instruction must be generated. Fixes llvm#101213 (cherry picked from commit f70f122)
@alexey-bataev Hi, is there a way to backport this fix for llvm 19, I tried just cherry picking f70f122 but I ended up getting assertion failures of the form EDIT: Would just adding a check that they're in the same basic block work? |
Yes, check for the same parent should fix it |
…omes before new vector value. When trying to reuse extractelement instruction, need to check that it is inserted into proper position. Its original vector operand should come before new vector value, otherwise new extractelement instruction must be generated. Fixes llvm#101213 (cherry picked from commit f70f122)
…omes before new vector value. When trying to reuse extractelement instruction, need to check that it is inserted into proper position. Its original vector operand should come before new vector value, otherwise new extractelement instruction must be generated. Fixes llvm#101213 (cherry picked from commit f70f122)
…omes before new vector value. When trying to reuse extractelement instruction, need to check that it is inserted into proper position. Its original vector operand should come before new vector value, otherwise new extractelement instruction must be generated. Fixes llvm#101213 (cherry picked from commit f70f122)
To reproduce run the following test with -passes slp-vectorizer -slp-threshold=-99999
Test.ll.tgz
Reproducer : https://godbolt.org/z/GW41a7WP6
Stack dump:
The text was updated successfully, but these errors were encountered: