forked from OSchip/llvm-project
parent
9c9240447b
commit
9056881d76
|
@ -1,7 +1,7 @@
|
|||
; This test ensures that alloca instructions in the entry block for an inlined
|
||||
; function are moved to the top of the function they are inlined into.
|
||||
;
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | grep -C 1 alloca | grep Entry:
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | grep -C1 alloca | grep Entry:
|
||||
|
||||
int %func(int %i) {
|
||||
%X = alloca int
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; This testcase tests for a problem where LICM hoists
|
||||
; potentially trapping instructions when they are not guaranteed to execute.
|
||||
;
|
||||
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C 2 "IfUnEqual" | grep div
|
||||
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "IfUnEqual" | grep div
|
||||
|
||||
%X = global int 0
|
||||
declare void %foo()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; This testcase tests to make sure a trapping instruction is hoisted when
|
||||
; it is guaranteed to execute.
|
||||
;
|
||||
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C 2 "test" | grep div
|
||||
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div
|
||||
|
||||
%X = global int 0
|
||||
declare void %foo()
|
||||
|
|
Loading…
Reference in New Issue