Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

simplify IfThenElse conditions with ISL #153

Open
Superjomn opened this issue Aug 5, 2020 · 0 comments
Open

simplify IfThenElse conditions with ISL #153

Superjomn opened this issue Aug 5, 2020 · 0 comments

Comments

@Superjomn
Copy link
Collaborator

Superjomn commented Aug 5, 2020

Add something like

  • ConditionedSimplify to simplify Load/Store indices
  • Extract extent from PolyFor to construct a For
  if ((blockIdx.x < 40)) {
  {
    if ((threadIdx.x < 40)) {
    {
      if (((((blockIdx.x >= 0) && (blockIdx.x <= 39)) && (threadIdx.x >= 0)) && (threadIdx.x <= 39))) {
        C[0] = A[((40 * blockIdx.x) + threadIdx.x)];
      };
      C_cache_write_out_3[((40 * blockIdx.x) + threadIdx.x)] = C[0];
    }
    };
  }
  };
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant