We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0bde84 commit fc02749Copy full SHA for fc02749
IGC/Compiler/Optimizer/OpenCLPasses/AddressSpaceAliasAnalysis/AddressSpaceAliasAnalysis.cpp
@@ -83,6 +83,13 @@ class AddressSpaceAAResult : public AAResultBase<AddressSpaceAAResult> {
83
return NoAlias;
84
}
85
86
+ // Private memory doesn't alias any stateful memory
87
+ if((AS1 == ADDRESS_SPACE_PRIVATE && AS2 > ADDRESS_SPACE_NUM_ADDRESSES) ||
88
+ (AS1 > ADDRESS_SPACE_NUM_ADDRESSES && AS2 == ADDRESS_SPACE_PRIVATE))
89
+ {
90
+ return NoAlias;
91
+ }
92
+
93
94
/// For some client APIs (e.g. vulkan) compiler is free to assume that
95
/// resources bound to two different bindings points never alias unless a
0 commit comments