-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline: Convert test to generated checks
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 | ||
; RUN: opt < %s -passes=inline -S | FileCheck %s | ||
|
||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | ||
target triple = "x86_64-unknown-linux-gnu" | ||
|
||
define ptr @callee() alwaysinline { | ||
; CHECK-LABEL: define ptr @callee() | ||
%1 = call ptr @llvm.strip.invariant.group.p0(ptr null) | ||
ret ptr %1 | ||
; CHECK-LABEL: define ptr @callee | ||
; CHECK-SAME: () #[[ATTR0:[0-9]+]] { | ||
; CHECK-NEXT: [[TMP1:%.*]] = call ptr @llvm.strip.invariant.group.p0(ptr null) | ||
; CHECK-NEXT: ret ptr [[TMP1]] | ||
; | ||
%1 = call ptr @llvm.strip.invariant.group.p0(ptr null) | ||
ret ptr %1 | ||
} | ||
|
||
define ptr @caller() { | ||
; CHECK-LABEL: define ptr @caller() | ||
; CHECK-NEXT: call ptr @llvm.strip.invariant.group.p0(ptr null) | ||
%1 = call ptr @callee() | ||
ret ptr %1 | ||
; CHECK-LABEL: define ptr @caller() { | ||
; CHECK-NEXT: [[TMP1:%.*]] = call ptr @llvm.strip.invariant.group.p0(ptr null) | ||
; CHECK-NEXT: ret ptr [[TMP1]] | ||
; | ||
%1 = call ptr @callee() | ||
ret ptr %1 | ||
} | ||
|
||
declare ptr @llvm.strip.invariant.group.p0(ptr) |