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
The workaround I am using for this issue is, changing N = p[(i + 1) % 5]; to N = p[(i + 1) % 5] + 0; With this change compilation with optimization flags are working as well.
The text was updated successfully, but these errors were encountered:
[LLVM 16, Enzyme v0.0.98]
Here is the sample code:
When I compile this code with -O0 opt I get this output as expected:
When I compile it with -O1/2/3
The workaround I am using for this issue is, changing
N = p[(i + 1) % 5];
toN = p[(i + 1) % 5] + 0;
With this change compilation with optimization flags are working as well.The text was updated successfully, but these errors were encountered: