inductor: relax the dynamic variable check for cpu dynamic test case (#98815)
For the following code of dynamic shape case:
```
#pragma GCC ivdep
for(long i1=static_cast<long>(0); i1<static_cast<long>(8); i1+=static_cast<long>(1))
{
#pragma GCC ivdep
for(long i2=static_cast<long>(0); i2<static_cast<long>(4*ks2*ks3); i2+=static_cast<long>(1))
{
auto tmp0 = in_ptr2[static_cast<long>(i2 + (4*i1*ks2*ks3) + (32*i0*ks2*ks3))];
out_ptr2[static_cast<long>(i1 + (8*i2) + (32*i0*ks2*ks3))] = tmp0;
}
}
```
we don't need to check each loop has a dynamic variable. This PR relaxes the check.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98815
Approved by: https://github.com/jgong5, https://github.com/jansel