diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-06-18 04:03:23 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-06-18 04:03:23 +0000 |
| commit | 466e1f8dd2f97c52110f775bd7385ac19929f733 (patch) | |
| tree | f9457190536702992e9b8e6f5fd9169e351b283c | |
| parent | b5ee8b3e899f4de7e2493f416b9d9b15dd39e8a8 (diff) | |
| download | bcm5719-llvm-466e1f8dd2f97c52110f775bd7385ac19929f733.tar.gz bcm5719-llvm-466e1f8dd2f97c52110f775bd7385ac19929f733.zip | |
temporarily revert this testcase since its patch was reverted.
llvm-svn: 52441
| -rw-r--r-- | llvm/test/Transforms/IPConstantProp/return-constants.ll | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/llvm/test/Transforms/IPConstantProp/return-constants.ll b/llvm/test/Transforms/IPConstantProp/return-constants.ll index 7205c2820a7..40567f80bd8 100644 --- a/llvm/test/Transforms/IPConstantProp/return-constants.ll +++ b/llvm/test/Transforms/IPConstantProp/return-constants.ll @@ -1,41 +1,20 @@ -; RUN: llvm-as < %s | opt -ipconstprop | llvm-dis > %t -;; Check that the 21 constants got propagated properly -; RUN: cat %t | grep {%M = add i32 21, 21} -;; Check that the second return values didn't get propagated -; RUN: cat %t | grep {%N = add i32 %B, %D} +; RUN: llvm-as < %s | opt -ipconstprop | llvm-dis | grep {add i32 21, 21} -define internal {i32, i32} @foo(i1 %Q) { - br i1 %Q, label %T, label %F +define internal {i32, i32} @foo(i1 %C) { + br i1 %C, label %T, label %F T: ; preds = %0 - ret i32 21, i32 22 + ret i32 21, i32 21 F: ; preds = %0 - ret i32 21, i32 23 + ret i32 21, i32 21 } -define internal {i32, i32} @bar(i1 %Q) { - %A = insertvalue { i32, i32 } undef, i32 21, 0 - br i1 %Q, label %T, label %F - -T: ; preds = %0 - %B = insertvalue { i32, i32 } %A, i32 22, 1 - ret { i32, i32 } %B - -F: ; preds = %0 - %C = insertvalue { i32, i32 } %A, i32 23, 1 - ret { i32, i32 } %C -} - -define { i32, i32 } @caller(i1 %Q) { - %X = call {i32, i32} @foo( i1 %Q ) +define i32 @caller(i1 %C) { + %X = call {i32, i32} @foo( i1 %C ) %A = getresult {i32, i32} %X, 0 %B = getresult {i32, i32} %X, 1 - %Y = call {i32, i32} @bar( i1 %Q ) - %C = extractvalue {i32, i32} %Y, 0 - %D = extractvalue {i32, i32} %Y, 1 - %M = add i32 %A, %C - %N = add i32 %B, %D - ret { i32, i32 } %X + %Y = add i32 %A, %B + ret i32 %Y } |

