HomePhabricator

[IndVars] Remove exiting conditions that are trivially true/false

Authored by mkazantsev on Sep 28 2020, 9:34 PM.

Description

[IndVars] Remove exiting conditions that are trivially true/false

When removing exiting loop conditions, we only consider checks for
which we know the exact exit count. We could also eliminate checks for
which the condition is always true/false.

Differential Revision: https://reviews.llvm.org/D87344
Reviewed By: lebedev.ri, reames