forked from OSchip/llvm-project
parent
6cf9053473
commit
cd1d05ab33
|
@ -1,10 +1,7 @@
|
||||||
; -simplifycfg is not folding blocks if there is a PHI node involved. This
|
; -simplifycfg is not folding blocks if there is a PHI node involved. This
|
||||||
; should be fixed eventually
|
; should be fixed eventually
|
||||||
|
|
||||||
; RUN: if as < %s | opt -simplifycfg | dis | grep br
|
; RUN: as < %s | opt -simplifycfg | dis | not grep br
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
|
|
||||||
int %main(int %argc) {
|
int %main(int %argc) {
|
||||||
br label %InlinedFunctionReturnNode
|
br label %InlinedFunctionReturnNode
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
; Test merging of blocks with phi nodes.
|
; Test merging of blocks with phi nodes.
|
||||||
;
|
;
|
||||||
; RUN: if as < %s | opt -simplifycfg | dis | grep 'N:'
|
; RUN: as < %s | opt -simplifycfg | dis | not grep 'N:'
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
;
|
;
|
||||||
|
|
||||||
int %test(bool %a) {
|
int %test(bool %a) {
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
; Test merging of blocks that only have PHI nodes in them
|
; Test merging of blocks that only have PHI nodes in them
|
||||||
;
|
;
|
||||||
; RUN: if as < %s | opt -simplifycfg | dis | grep 'N:'
|
; RUN: as < %s | opt -simplifycfg | dis | not grep 'N:'
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
;
|
;
|
||||||
|
|
||||||
int %test(bool %a, bool %b) {
|
int %test(bool %a, bool %b) {
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
; where the mergedinto block doesn't have any PHI nodes, and is in fact
|
; where the mergedinto block doesn't have any PHI nodes, and is in fact
|
||||||
; dominated by the block-to-be-eliminated
|
; dominated by the block-to-be-eliminated
|
||||||
;
|
;
|
||||||
; RUN: if as < %s | opt -simplifycfg | dis | grep 'N:'
|
; RUN: as < %s | opt -simplifycfg | dis | not grep 'N:'
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
;
|
;
|
||||||
|
|
||||||
int %test(bool %a, bool %b) {
|
int %test(bool %a, bool %b) {
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
; Test CFG simplify removal of branch instructions...
|
; Test CFG simplify removal of branch instructions...
|
||||||
;
|
;
|
||||||
; RUN: if as < %s | opt -simplifycfg | dis | grep br
|
; RUN: as < %s | opt -simplifycfg | dis | not grep br
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
|
|
||||||
|
|
||||||
void "test1"() {
|
void "test1"() {
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
; This test ensures that the simplifycfg pass continues to constant fold
|
; This test ensures that the simplifycfg pass continues to constant fold
|
||||||
; terminator instructions.
|
; terminator instructions.
|
||||||
|
|
||||||
; RUN: if as < %s | opt -simplifycfg | grep br
|
; RUN: as < %s | opt -simplifycfg | not grep br
|
||||||
; RUN: then exit 1
|
|
||||||
; RUN: else exit 0
|
|
||||||
; RUN: fi
|
|
||||||
|
|
||||||
int %test(int %A, int %B) {
|
int %test(int %A, int %B) {
|
||||||
J:
|
J:
|
||||||
|
|
Loading…
Reference in New Issue