1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
3 ; RUN: opt -S -debug-counter=newgvn-vn-skip=1,newgvn-vn-count=2 -passes=newgvn < %s 2>&1 | FileCheck %s
4 ;; Test that, with debug counters on, we don't value number the first instruction, only the second and third,
5 ;; which means we do not discover the return is constant.
7 ; CHECK-LABEL: @vntest(
9 ; CHECK-NEXT: [[A:%.*]] = add i32 1, 3
10 ; CHECK-NEXT: [[D:%.*]] = add i32 8, 8
11 ; CHECK-NEXT: ret i32 [[D]]