1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -S | FileCheck %s
3
4define i32 @reuse_arg_names(i32 %X, i32 %Y) {
5; CHECK-LABEL: @reuse_arg_names(
6; CHECK-NEXT:    [[Z:%.*]] = sub i32 [[X:%.*]], [[Y:%.*]]
7; CHECK-NEXT:    [[Q:%.*]] = add i32 [[Z]], [[Y]]
8; CHECK-NEXT:    ret i32 [[Q]]
9;
10  %Z = sub i32 %X, %Y
11  %Q = add i32 %Z, %Y
12  ret i32 %Q
13}
14