diff options
| author | Haicheng Wu <haicheng@codeaurora.org> | 2017-12-04 19:56:33 +0000 |
|---|---|---|
| committer | Haicheng Wu <haicheng@codeaurora.org> | 2017-12-04 19:56:33 +0000 |
| commit | 234eabaf07d678586c945938963fa896a135f4da (patch) | |
| tree | 66b190dd28889a99a76811875889069d76c81768 /llvm/test/Assembler | |
| parent | dc81fd6cec5a8a877ee15174ac5fa2479dc4a932 (diff) | |
| download | bcm5719-llvm-234eabaf07d678586c945938963fa896a135f4da.tar.gz bcm5719-llvm-234eabaf07d678586c945938963fa896a135f4da.zip | |
[ConstantFold] Support vector index when factoring out GEP index into preceding dimensions
Follow-up of r316824. This patch supports the vector type for both current and
previous index when factoring out the current one into the previous one.
Differential Revision: https://reviews.llvm.org/D39556
llvm-svn: 319683
Diffstat (limited to 'llvm/test/Assembler')
| -rw-r--r-- | llvm/test/Assembler/getelementptr_vec_ce.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Assembler/getelementptr_vec_ce.ll b/llvm/test/Assembler/getelementptr_vec_ce.ll index 4cf2964a57f..67029698bfc 100644 --- a/llvm/test/Assembler/getelementptr_vec_ce.ll +++ b/llvm/test/Assembler/getelementptr_vec_ce.ll @@ -3,7 +3,7 @@ @G = global [4 x i32] zeroinitializer ; CHECK-LABEL: @foo -; CHECK: ret <4 x i32*> getelementptr ([4 x i32], [4 x i32]* @G, <4 x i32> zeroinitializer, <4 x i32> <i32 0, i32 1, i32 2, i32 3>) +; CHECK: ret <4 x i32*> getelementptr inbounds ([4 x i32], [4 x i32]* @G, <4 x i32> zeroinitializer, <4 x i32> <i32 0, i32 1, i32 2, i32 3>) define <4 x i32*> @foo() { ret <4 x i32*> getelementptr ([4 x i32], [4 x i32]* @G, i32 0, <4 x i32> <i32 0, i32 1, i32 2, i32 3>) } |

