mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
Add inbounds to these getelementptrs, now that GlobalOpt requires this,
to preserve the meaning of these tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80bdc967e9
commit
ef17e24aee
@ -56,9 +56,9 @@ define internal void @CTOR4() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
define internal void @CTOR5() {
|
define internal void @CTOR5() {
|
||||||
%X.2p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; <i32*> [#uses=2]
|
%X.2p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; <i32*> [#uses=2]
|
||||||
%X.2 = load i32* %X.2p ; <i32> [#uses=1]
|
%X.2 = load i32* %X.2p ; <i32> [#uses=1]
|
||||||
%X.1p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 0 ; <i32*> [#uses=1]
|
%X.1p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 0 ; <i32*> [#uses=1]
|
||||||
store i32 %X.2, i32* %X.1p
|
store i32 %X.2, i32* %X.1p
|
||||||
store i32 42, i32* %X.2p
|
store i32 42, i32* %X.2p
|
||||||
ret void
|
ret void
|
||||||
|
@ -43,9 +43,9 @@ define internal void @CTOR4() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
define internal void @CTOR5() {
|
define internal void @CTOR5() {
|
||||||
%X.2p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; <i32*> [#uses=2]
|
%X.2p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 1, i32 0 ; <i32*> [#uses=2]
|
||||||
%X.2 = load i32* %X.2p ; <i32> [#uses=1]
|
%X.2 = load i32* %X.2p ; <i32> [#uses=1]
|
||||||
%X.1p = getelementptr { i32, [2 x i32] }* @X, i32 0, i32 0 ; <i32*> [#uses=1]
|
%X.1p = getelementptr inbounds { i32, [2 x i32] }* @X, i32 0, i32 0 ; <i32*> [#uses=1]
|
||||||
store i32 %X.2, i32* %X.1p
|
store i32 %X.2, i32* %X.1p
|
||||||
store i32 42, i32* %X.2p
|
store i32 42, i32* %X.2p
|
||||||
ret void
|
ret void
|
||||||
|
Loading…
Reference in New Issue
Block a user