From 741dfaa2eabf22ba4aa9c0f422e9e79ee2368737 Mon Sep 17 00:00:00 2001 From: Ilia Filippov Date: Wed, 15 Jan 2014 15:15:42 +0400 Subject: [PATCH] adding noalias attribute to uniform pointer parameters of export function --- func.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/func.cpp b/func.cpp index af2cc05a..cc59fb54 100644 --- a/func.cpp +++ b/func.cpp @@ -498,6 +498,11 @@ Function::GenerateIR() { appFunction->setDoesNotThrow(); #endif + for (int i = 0; i < type->GetNumParameters(); i++) { + if (function->doesNotAlias(i)) { + appFunction->setDoesNotAlias(i); + } + } g->target->markFuncWithTargetAttr(appFunction); if (appFunction->getName() != functionName) {