diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-01-31 01:04:23 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-01-31 01:04:23 +0000 |
commit | 41e4ac4224337cc17c687687eff9dc1ae9ea2663 (patch) | |
tree | 9d08c92c6da27ac0e894c0b86bc89dd3bb694ad0 /llvm/test/Transforms/SimplifyCFG/PHINode.ll | |
parent | b8b16b567c123339dd4fea01170a86daf215a229 (diff) | |
download | bcm5719-llvm-41e4ac4224337cc17c687687eff9dc1ae9ea2663.tar.gz bcm5719-llvm-41e4ac4224337cc17c687687eff9dc1ae9ea2663.zip |
Filecheckized 2x tests in SimplifyCFG and removed their date prefix to fit with current llvm style for test names.
llvm-svn: 174011
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/PHINode.ll')
-rw-r--r-- | llvm/test/Transforms/SimplifyCFG/PHINode.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/PHINode.ll b/llvm/test/Transforms/SimplifyCFG/PHINode.ll new file mode 100644 index 00000000000..25a242a5599 --- /dev/null +++ b/llvm/test/Transforms/SimplifyCFG/PHINode.ll @@ -0,0 +1,15 @@ +; -simplifycfg is not folding blocks if there is a PHI node involved. This +; should be fixed eventually + +; RUN: opt < %s -simplifycfg -S | FileCheck %s + +define i32 @main(i32 %argc) { +; <label>:0 +; CHECK-NOT: br label %InlinedFunctionReturnNode + br label %InlinedFunctionReturnNode +InlinedFunctionReturnNode: ; preds = %0 + %X = phi i32 [ 7, %0 ] ; <i32> [#uses=1] + %Y = add i32 %X, %argc ; <i32> [#uses=1] + ret i32 %Y +} + |