[FIX] Fix the potential issue of containsOnlyMatMulDep.

llvm-svn: 294835
This commit is contained in:
Roman Gareev 2017-02-11 09:48:09 +00:00
parent 5ef7e210c0
commit de69293b01

View File

@ -783,6 +783,8 @@ static bool containsOnlyMatMulDep(__isl_keep isl_map *Schedule,
}
isl_val_free(Val);
}
if (DeltasDimNum == 0 || Pos < 0)
return false;
return true;
}