efriedma added a comment. I'm not really a fan of CHECK-NOT in most cases; tests using it have a tendency to bitrot over time. Better to use CHECK-NEXT to make sure there aren't any unexpected instructions in the optimized function. https://reviews.llvm.org/D27413