summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/argument_name_reuse.ll.expected
blob: ee9582663e2aeee91c14402dcf3d21783b5de779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -S | FileCheck %s

define i32 @reuse_arg_names(i32 %X, i32 %Y) {
; CHECK-LABEL: define {{[^@]+}}@reuse_arg_names
; CHECK-SAME: (i32 [[X:%.*]], i32 [[Y:%.*]])
; CHECK-NEXT:    [[Z:%.*]] = sub i32 [[X]], [[Y]]
; CHECK-NEXT:    [[Q:%.*]] = add i32 [[Z]], [[Y]]
; CHECK-NEXT:    ret i32 [[Q]]
;
  %Z = sub i32 %X, %Y
  %Q = add i32 %Z, %Y
  ret i32 %Q
}
OpenPOWER on IntegriCloud