brintos

brintos / llvm-project-archived public Read only

0
0
Text · 524 B · 2e3fa62 Raw
17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt < %s -passes=ipsccp -S | FileCheck %s3 4declare range(i32 0, 20) i32 @callee(i32)5 6define range(i32 10, 30) i32 @caller(i32 %x) {7; CHECK-LABEL: define range(i32 10, 20) i32 @caller(8; CHECK-SAME: i32 [[X:%.*]]) {9; CHECK-NEXT:  [[ENTRY:.*:]]10; CHECK-NEXT:    [[CALL:%.*]] = call range(i32 0, 20) i32 @callee()11; CHECK-NEXT:    ret i32 [[CALL]]12;13entry:14  %call = call range(i32 0, 20) i32 @callee()15  ret i32 %call16}17