On 09/23/15 06:59, Bernd Schmidt wrote:
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).

Perhaps it could be. I'll need to check where that pass happens. Anyway, the main thrust of this patch is the new pass, which I thought might be easier to review with minimal additional clutter.

nathan

Reply via email to