Optimize comparisons where lhs and rhs are the same

Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: Ia9001e9f3a32c3979f78c76bc0b8b86fe6119ecd
6 files changed