Updated spirv-tools.

This commit is contained in:
Бранимир Караџић
2022-05-08 09:42:36 -07:00
parent 4dbb926746
commit 557b9743fb
25 changed files with 379 additions and 65 deletions

View File

@@ -754,6 +754,10 @@ bool Loop::FindNumberOfIterations(const Instruction* induction,
// |step_value| is NOT cleanly divisible then we add one to the sum.
int64_t Loop::GetIterations(SpvOp condition, int64_t condition_value,
int64_t init_value, int64_t step_value) const {
if (step_value == 0) {
return 0;
}
int64_t diff = 0;
switch (condition) {