From 02e363ed527ec5e01b1ae42b5e5dbd3b374228b0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 7 Sep 2009 22:45:41 +0000 Subject: [PATCH] Add inbounds to these getelementptrs, now that GlobalOpt requires this, to preserve the meaning of these tests. llvm-svn: 81166 --- llvm/test/Transforms/GlobalOpt/ctor-list-opt-dbg.ll | 4 ++-- llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/Transforms/GlobalOpt/ctor-list-opt-dbg.ll b/llvm/test/Transforms/GlobalOpt/ctor-list-opt-dbg.ll index 45fb45341cd2..fd65935fabcd 100644 --- a/llvm/test/Transforms/GlobalOpt/ctor-list-opt-dbg.ll +++ b/llvm/test/Transforms/GlobalOpt/ctor-list-opt-dbg.ll @@ -56,9 +56,9 @@ define internal void @CTOR4() { } define internal void @CTOR5() { - %X.2p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; [#uses=2] + %X.2p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; [#uses=2] %X.2 = load i32* %X.2p ; [#uses=1] - %X.1p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 0 ; [#uses=1] + %X.1p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 0 ; [#uses=1] store i32 %X.2, i32* %X.1p store i32 42, i32* %X.2p ret void diff --git a/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll b/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll index 56aeadb38613..ab92ce8a4b9c 100644 --- a/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll @@ -43,9 +43,9 @@ define internal void @CTOR4() { } define internal void @CTOR5() { - %X.2p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; [#uses=2] + %X.2p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; [#uses=2] %X.2 = load i32* %X.2p ; [#uses=1] - %X.1p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 0 ; [#uses=1] + %X.1p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 0 ; [#uses=1] store i32 %X.2, i32* %X.1p store i32 42, i32* %X.2p ret void