[compiler] replacements for fixed array stored in private memory.
SPIRV OpenCL replacements for fixed array stored in private memory, instead
of global memory.
@@ -141,7 +141,7 @@ public class TornadoOpenCLIntrinsicsReplacements extends BasePhase<TornadoHighTi
FixedArrayNode fixedArrayNode;
final ConstantNode newLengthNode = ConstantNode.forInt(size, graph);
ResolvedJavaType elementType = metaAccess.lookupJavaType(elementKind.toJavaClass());
- fixedArrayNode = graph.addWithoutUnique(new FixedArrayNode(OCLArchitecture.globalSpace, elementType, newLengthNode));
+ fixedArrayNode = graph.addWithoutUnique(new FixedArrayNode(OCLArchitecture.privateSpace, elementType, newLengthNode));
newArray.replaceAtUsages(fixedArrayNode);
}
