mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
5eea1c2f70
This reverts commit 59d6e814ce0e7b40b7cc3ab136b9af2ffab9c6f8. The cause for the revert (3 clang tests running opt -ipconstprop) was fixed by removing those lines.
26 lines
641 B
LLVM
26 lines
641 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -ipsccp -deadargelim -S | FileCheck %s
|
|
|
|
; CHECK-NOT: %X
|
|
|
|
define internal i32 @foo(i32 %X) {
|
|
; CHECK-LABEL: @foo(
|
|
; CHECK-NEXT: [[Y:%.*]] = call i32 @foo()
|
|
; CHECK-NEXT: [[Z:%.*]] = add i32 [[Y]], 1
|
|
; CHECK-NEXT: ret i32 [[Z]]
|
|
;
|
|
%Y = call i32 @foo( i32 %X ) ; <i32> [#uses=1]
|
|
%Z = add i32 %Y, 1 ; <i32> [#uses=1]
|
|
ret i32 %Z
|
|
}
|
|
|
|
define void @bar() {
|
|
; CHECK-LABEL: @bar(
|
|
; CHECK-NEXT: [[TMP1:%.*]] = call i32 @foo()
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
call i32 @foo( i32 17 ) ; <i32>:1 [#uses=0]
|
|
ret void
|
|
}
|
|
|