Redundant condition (#32396)
Summary:
Optimize expression: 'A || (!A && B)' <=> 'A || B'
A: relErr <= maxRelErr
!A : relErr > maxRelErr
B: absErr <= absErrForRelErrFailure
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32396
Differential Revision: D19499370
Pulled By: ezyang
fbshipit-source-id: c19bdcb2d4e7ff7806a8cd181c6e7e9e276b9979