Speed up GraphChecker::VisitInstruction am: 8533e7b40d am: 271f764ba6

Original change: https://android-review.googlesource.com/c/platform/art/+/2935181

Change-Id: I8de6ad4ee6ccda33b69564fb80c4b5fd7e37675c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>