mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
bda2dd9fab
Summary: This change is in preparation to reuse these test for the Attributor. It mainly is to remove UB, make it clear what is tested, and use "modern" run lines. Reviewers: fhahn, efriedma, mssimpso, davide Subscribers: bollu, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69747
16 lines
360 B
LLVM
16 lines
360 B
LLVM
; RUN: opt < %s -ipconstprop -deadargelim -S | FileCheck %s
|
|
|
|
; CHECK-NOT: %X
|
|
|
|
define internal i32 @foo(i32 %X) {
|
|
%Y = call i32 @foo( i32 %X ) ; <i32> [#uses=1]
|
|
%Z = add i32 %Y, 1 ; <i32> [#uses=1]
|
|
ret i32 %Z
|
|
}
|
|
|
|
define void @bar() {
|
|
call i32 @foo( i32 17 ) ; <i32>:1 [#uses=0]
|
|
ret void
|
|
}
|
|
|