You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pass, also referred as IndVarSimplify pass, is generic LLVM pass.
When added to OptimizeIR() function, it improves performance
for cases like in this pseudo code:
uint max = data[thread_invocation_id];
for(uint i = 0; i < max; ++i)
{
n += 321;
}
With this pass the code can be transformed to just:
n += 321 * data[thread_invocation_id];
Change-Id: Ie536a5d487bdc4b15f648454a653dfe030eb7764
0 commit comments