commit | b9b376b8215f2ee17fb33f9dacad2ccf434e4507 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason@jlekstrand.net> | Mon Jun 24 17:33:02 2019 -0500 |
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | Thu Jul 18 08:20:12 2019 +0000 |
tree | 85c6fee6801aef4e049ca53b9ee0d6584cf11874 | |
parent | fde2473a06fe0b374b3b3ac311e23aa79ea4c92f [diff] |
nir/loop_analyze: Refactor detection of limit vars This commit reworks both get_induction_and_limit_vars() and try_find_trip_count_vars_in_iand to return true on success and not modify their output parameters on failure. This makes their callers significantly simpler. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> (cherry picked from commit 0333649e638a38258957fd8b7e0367d73bbc7a80)