X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FGlobalOpt%2Fphi-select.ll;h=e5cb9819ca0aeadb395b6afb29d56124bb99191e;hb=982e9b7f0d95a061f9253edf5bbc2689f82a0e32;hp=1734752dcdeb6e4695f104b8556434fcfdfef8ae;hpb=3e054fe9efc64596534bbae0d1634ed15181d642;p=oota-llvm.git diff --git a/test/Transforms/GlobalOpt/phi-select.ll b/test/Transforms/GlobalOpt/phi-select.ll index 1734752dcde..e5cb9819ca0 100644 --- a/test/Transforms/GlobalOpt/phi-select.ll +++ b/test/Transforms/GlobalOpt/phi-select.ll @@ -1,14 +1,14 @@ ; Test that PHI nodes and select instructions do not necessarily make stuff ; non-constant. -; RUN: opt %s -globalopt -S | not grep global +; RUN: opt < %s -globalopt -S | not grep global @X = internal global i32 4 ; [#uses=2] @Y = internal global i32 5 ; [#uses=2] define i32 @test1(i1 %C) { %P = select i1 %C, i32* @X, i32* @Y ; [#uses=1] - %V = load i32* %P ; [#uses=1] + %V = load i32, i32* %P ; [#uses=1] ret i32 %V } @@ -21,7 +21,7 @@ T: ; preds = %0 Cont: ; preds = %T, %0 %P = phi i32* [ @X, %0 ], [ @Y, %T ] ; [#uses=1] - %V = load i32* %P ; [#uses=1] + %V = load i32, i32* %P ; [#uses=1] ret i32 %V }