-
Notifications
You must be signed in to change notification settings - Fork 89
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
The compiler produce invalid spirv with enabled PhysicalPointerArgsPass. #1418
base: main
Are you sure you want to change the base?
Conversation
ae40adf
to
75101bd
Compare
@alan-baker and @rjodinchr, do you any inputs for @AlexDemydenko on this issue/PR? |
What kinds of errors? When I run:
The resulting binary passes spirv-val. What command line are you using? |
This is at least missing a test I would say. |
Command line from the clvk driver:
Error from spirv-val:
|
The tool spirv-val return errors for some spirv binaries.
75101bd
to
ecf4319
Compare
ping |
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.
Could you also add another test using clspv-opt
targeting the replace-pointer-bitcast
pass only.
Thank you
@@ -354,6 +354,11 @@ void ComputeStore(IRBuilder<> &Builder, StoreInst *ST, Value *OrgGEPIdx, | |||
unsigned DstEleTyBitWidth = SizeInBits(Builder, DstEleTy); | |||
|
|||
Type *OrigSrcTy = SrcTy; | |||
if (dyn_cast<IntToPtrInst>(Src)) { |
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.
Could you add a comment to explain what is happening here, and why it is needed
The tool spirv-val return errors for some spirv binaries.
The test list with OpenCL-CTS:
Kernel example:
vector-swizzle.txt