On 09/22/2015 05:16 PM, Nathan Sidwell wrote:
+ if (gimple_call_builtin_p (call, BUILT_IN_ACC_ON_DEVICE)) + /* acc_on_device must be evaluated at compile time for + constant arguments. */ + { + oacc_xform_on_device (call); + rescan = true; + }
Is there a reason this is not done as part of pass_fold_builtins? (It looks like maybe adding this to fold_call_stmt in builtins.c would be sufficient too).
Bernd