-
Notifications
You must be signed in to change notification settings - Fork 796
[sycl-post-link] Update spec constant pattern match for Device ASan #20680
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
[sycl-post-link] Update spec constant pattern match for Device ASan #20680
Conversation
Address Sanitizer pass changed the way to get stack offset from PtrIntAdd to GEP instruction. We need to update the patter match corresponding.
wenju-he
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| using namespace PatternMatch; | ||
| Value *X; | ||
| if (match(V, m_IntToPtr(m_Add(m_PtrToInt(m_Value(X)), m_ConstantInt())))) | ||
| if (match(V, m_GEP(m_Value(X), m_Constant()))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the right way to move forward considering that GEP is going to be deprecated upstream in the near future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated it to use m_PtrAdd.
|
Hi @intel/llvm-gatekeepers, this PR is ready to be merged. |
Address Sanitizer pass changed the way to get stack offset from PtrIntAdd to GEP instruction. We need to update the pattern match rule correspondingly.