[optimizing] Improve constant folding on logical and

Constant fold a & ~a = ~a & a = 0.

Test: added test to 442-checker-constant-folding
Test: test-art-host,test-art-target
Change-Id: Ib637c93e99ce22dd1ecd5684d05ce5ca4c9c823a
2 files changed