HomePhabricator

[Local] Prevent `invertCondition` from creating a redundant instruction

Authored by ekatz on May 29 2020, 11:07 AM.

Description

[Local] Prevent invertCondition from creating a redundant instruction

Prevent invertCondition from creating the inversion instruction, in
case the given value is an argument which has already been inverted.
Note that this approach has already been taken in case the given value
is an instruction (and not an argument).

Differential Revision: https://reviews.llvm.org/D80399